DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th December 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default Fluxbox + Firefox = UTF8 title problem..

Hi, folks!

Yesterday I decided to try out Fluxbox - it's simple, fast and I like it a lot!

Anyway, after installing Firefox I've noticed that I'm having problems viewing pages in utf-8, and to be more exact the problem is only when displaying the title which appear as some strange characters..

The problem occurs only when viewing non-english sites, but the strange thing is that they use utf-8 as their encoding and the only problem is as I said when displaying the title.

I'm running Gnome2 as well and there is no such a problem, so I think that the problem must be Fluxbox related. Anyone having such a problem?

Any ideas how to fix this?

Thanks!
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
  #2   (View Single Post)  
Old 7th December 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
Spam Deminer
 
Join Date: Apr 2008
Location: NYC
Posts: 322
Thanked 31 Times in 25 Posts
Default

Just a guess, as I don't use Gnome, is that perhaps Gnome does some extra work in automatically setting locales.

Are you able to solve the issue by going to View=>Character Encoding?
Reply With Quote
  #3   (View Single Post)  
Old 7th December 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

Quote:
Originally Posted by scottro View Post
Just a guess, as I don't use Gnome, is that perhaps Gnome does some extra work in automatically setting locales.

Are you able to solve the issue by going to View=>Character Encoding?
I don't use GNOME either, but installed it just to check if the problem occurs in GNOME too.

Anyway, the encoding is properly set, but the only thing that does not show right is the title of the page.

I've attached a screenshot, note the squares that appear as page title.

Name:  ff-fluxbox.jpg
Views: 609
Size:  25.7 KB

I don't have much experience with Fluxbox, but I think the problem has something to do with Fluxbox?
I've googled around, but didn't find anything..
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
  #4   (View Single Post)  
Old 8th December 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
Spam Deminer
 
Join Date: Apr 2008
Location: NYC
Posts: 322
Thanked 31 Times in 25 Posts
Default

Ah, when it's squares like that, it means that something isn't find the proper fonts. I'm darned if I know what though. (as opposed to incorrect encoding where it simply looks like gibberish, rather than squares.)
Reply With Quote
  #5   (View Single Post)  
Old 8th December 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

The strange thing is that I have all the needed fonts already installed.

The pages that these squares appear are cyrillic, but they should appear normal, since they use UTF-8.

Don't know what's happening.. No matter which browser I use under Fluxbox these squares appear.

Any other WM - GNOME, KDE, etc. displays the title normal..

Is there some additional ports/programs that need to be installed with Fluxbox in order to recognize the fonts?

Thanks, for your help scottro!
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
  #6   (View Single Post)  
Old 8th December 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Thanked 25 Times in 24 Posts
Default

You should change the window.font: with one providing the necessary glyphs.
DejaVu comes to mind.
FYI, an increasing number of applications home pages now have a wiki
http://fluxbox-wiki.org/index.php?title=Change_font
__________________
da more I know I know I know nuttin'
Reply With Quote
  #7   (View Single Post)  
Old 9th December 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

Thanks for the link!

Unfortunately, after reading the info at this Wiki, my Fluxbox keeps displaying these squares.

I've set session.styleOverlay: ~/.fluxbox/overlay in ~/.fluxbox/init and the following lines to ~/.fluxbox/overlay

Code:
menu.title.font: sans-10:bold
toolbar.clock.font: sans-10:bold
toolbar.workspace.font: sans-10:bold
.font: sans-8
That didn't work, so I used xfontsel to create this font:
Code:
 -monotype-arial-*-*-*-*-17-120-*-100-*-*-microsoft-cp1251
Now I don't see any squares, because on all cyrillic pages the title does not even appear... What am I missing here?
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
  #8   (View Single Post)  
Old 10th December 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

Hi, again!

The problem was to easy too solve - just setting LANG=bg_BG.CP1251 solved the problem

It seems that the other WM that I've been using set LANG by default, while Fluxbox doesn't..

Anyway, everything is OK now. Thanks everyone!
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
table formatting (could not find better title) gosha Programming 10 19th March 2009 06:33 PM
Screen + utf8 not working Zmyrgel OpenBSD General 1 10th March 2009 03:12 PM
Firefox 2.0 Crash Problem disappearedng FreeBSD General 13 8th November 2008 05:54 AM
Fluxbox fbsetbg problem rex FreeBSD General 6 12th September 2008 05:18 PM
Can i change the title on my topic? aleunix Feedback and Suggestions 2 2nd June 2008 04:52 AM


All times are GMT. The time now is 04:18 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick