Help - Search - Members - Calendar
Full Version: Gtk+ Utf-8/chinese Problem?
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
eddiectc
problem:
can't see chinese(in utf-8) content and filename in gtk applications (xmms)

but can see them properly in qt applications (justreader) and gtk2 (gvim)

environment:
SL6000L, running pdaxrom 1.1.0beta1,
installed firefly ttf font(utf-8), and firefly(iso10646), taipei(big5) pcf font
installed locale: glibc-locale-zh-hk.utf-8, glibc-locale-zh-tw.utf-8
LC_CTYPE=zh_TW.UTF-8
LC_COLLATE=zh_TW.UTF-8
.gtkrc: set to firefly iso10646 font

detail description:
I think it's a gtk problem, since when I was using xmms playlist to add song, the chinese utf-8 filename can't display properly. Although i still can add those files into playlist, the playlist also can't display them correctly.

I've tried to set .gtkrc and xmms to use iso10646 and big5 font, no luck!
However when using JustReader2, which is a QT apps, with setting to use the utf-8 ttf font, i can browse the chinese file (utf-8), and can read the content (ebook, big5). I've also succeed to browse the chinese file in KDE using the default file manager.

So is it a GTK+ problem? Any workaround?
Or is there any QT based mp3 player?
ShiroiKuma
QUOTE(eddiectc @ Jan 2 2006, 05:28 PM)
problem:
can't see chinese(in utf-8) content and filename in gtk applications (xmms)

but can see them properly in qt applications (justreader)

environment:
SL6000L, running pdaxrom 1.1.0beta1,
installed firefly ttf font, and firefly, taipei pcf font
LC_CTYPE=zh_TW.utf-8
LC_COLLATE=zh_TW.utf-8
.gtkrc: set to firefly iso10646 font

detail description:
I think it's a gtk problem, since when I was using xmms playlist to add song, the chinese utf-8 filename can't display properly. Although i still can add those files into playlist, the playlist also can't display them correctly.

I've tried to set .gtkrc and xmms to use iso10646 and big5 font, no luck!
However when using JustReader2, which is a QT apps, with setting to use the utf-8 ttf font, i can browse the chinese file (utf-8), and can read the content (ebook, big5). I've also succeed to browse the chinese file in KDE using the default file manager.

So is it a GTK+ problem? Any workaround?
Or is there any QT based mp3 player?
*

It seems you didn't install the Chinese locale from the feed. Have you done this?
eddiectc
QUOTE(ShiroiKuma @ Jan 2 2006, 04:38 PM)
It seems you didn't install the Chinese locale from the feed. Have you done this?
*



Yes, I did. Just forgot to mention this,
I've installed the zh_TW.utf8 and zh_HK.utf8 locale
ShiroiKuma
The two variables should be
CODE
LC_CTYPE=zh_TW.UTF-8
LC_COLLATE=zh_TW.UTF-8
not utf-8, it's case-sensitive.
eddiectc
QUOTE(ShiroiKuma @ Jan 2 2006, 04:44 PM)
The two variables should be
CODE
LC_CTYPE=zh_TW.UTF-8
LC_COLLATE=zh_TW.UTF-8
not utf-8, it's case-sensitive.
*


Yes...You're right. But I've already set it correctly like you said, just typo here...sorry for the inconvenience
ShiroiKuma
Try the following and see if it works
CODE
LC_ALL=zh_TW.UTF-8
LANG=zh_TW.UTF-8
eddiectc
QUOTE(ShiroiKuma @ Jan 2 2006, 05:01 PM)
Try the following and see if it works
CODE
LC_ALL=zh_TW.UTF-8
LANG=zh_TW.UTF-8

*


tried, no luck
cs_jacky
XMMS is a gtk 1.2 application (not GTK 2.0). GTK 1.2 don't use TTF.

You need to install Chinese pcf fonts and select the font in the preference of XMMS in order to display the Chinese characters.
eddiectc
QUOTE(cs_jacky @ Jan 2 2006, 10:15 PM)
XMMS is a gtk 1.2 application (not GTK 2.0). GTK 1.2 don't use TTF.

You need to install Chinese pcf fonts and select the font in the preference of XMMS in order to display the Chinese characters.
*


yes, I did. I have installed chinese and utf-8 pcf fonts, but it just didn't work.
the "browse file" widget can't show the utf-8 filename properly, i think it's not related to xmms but gtk+1.2.
eddiectc
I think GTK2 applications work find with utf-8 encoding & truetype font.
So is there any GTK2 based mp3 player for Z?

i just can find one, but not yet port to Z...
http://bmpx.beep-media-player.org
pgas
Where are your files stored? on a fat partition?

maybe this partition should be remounted with iocharset=utf8?
eddiectc
QUOTE(pgas @ Jan 3 2006, 02:37 PM)
Where are your files stored? on a fat partition?

maybe this partition should be remounted with iocharset=utf8?
*


I did so...
ZDevil
QUOTE(eddiectc @ Jan 3 2006, 04:33 PM)
I think GTK2 applications work find with utf-8 encoding & truetype font.
So is there any GTK2 based mp3 player for Z?

i just can find one, but not yet port to Z...
http://bmpx.beep-media-player.org
*


It may not be possible to port it to pdaX for now, as it has very high requirement such as kernel > 2.6 and GTK+ > 2.8

That's why I have to compiled quite a number of GTK2 apps for my own use. unsure.gif
eddiectc
QUOTE(ZDevil @ Jan 3 2006, 10:52 PM)
It may not be possible to port it to pdaX for now, as it has very high requirement such as kernel > 2.6 and GTK+ > 2.8

That's why I have to compiled quite a number of GTK2 apps for my own use.  unsure.gif
*


um...so it seems impossible to make gtk work with utf-8 encoding...

I'm now finding gtk2 or qt based mp3 player for Z, any suggestion?
cs_jacky
I tried to compile beep-media-player (Gtk2 XMMS like player).

However, it don't use integer based decoder (MAD and tremor to decode MP3 and OGG).

There are plugin for XMMS to use MAD and termor. However, I can't find one. After googling, it seems that there are MAD plugin for beep-media-player but I can't find the project website and the source code. Anyone know how to get it? Thanks.
eddiectc
QUOTE(cs_jacky @ Jan 10 2006, 12:45 PM)
I tried to compile beep-media-player (Gtk2 XMMS like player).

However, it don't use integer based decoder (MAD and tremor to decode MP3 and OGG).

There are plugin for XMMS to use MAD and termor. However, I can't find one. After googling, it seems that there are MAD plugin for beep-media-player but I can't find the project website and the source code. Anyone know how to get it?  Thanks.
*


How about XMMS2?
http://sourceforge.net/projects/xmms2/

Can it run in Zaurus with the GKT2 plugin?
ZDevil
QUOTE(eddiectc @ Jan 10 2006, 06:26 PM)
How about XMMS2?
http://sourceforge.net/projects/xmms2/
Can it run in Zaurus with the GKT2 plugin?
*


Oh XMMS2 has a lot of libraries to be compiled first before compiling the player itself. It would be quite a challenge for those using the native SDK, though. rolleyes.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.