Red Hat Bugzilla – Bug 51709
Window title is mojibake
Last modified: 2007-04-18 12:35:50 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3+) Gecko/20010810
Description of problem:
When browsed the Japanese web page, window title is mojibake.
Steps to Reproduce:
1.browse the Japanese web page with Nautilus
2.see a window title.
Actual Results: Mojibake!!
Expected Results: show Japanese correctly.
This problem doesn't depend an encoding of page. e.g. iso2022-jp, euc-jp,
maybe Nautilus doesn't convert the string to the locale encoding from UTF-8
Created attachment 27675 [details]
screenshot is here
This defect is considered SHOULD-FIX for Fairfax.
Chris what encoding is the title from the Mozilla component in?
I think it's UTF-8. 0.9.2 doesn't include the i18n stuff in the extended WM
Woops. That's not UTF-8. I didn't realize that we were talking about Nautilus.
I thought we were talking about Mozilla.
The string that's passed back to Nautilus through gtk_moz_embed_get_title()
isn't UTF-8. In fact, it's probably converted to a C-string by chopping off the
high bits. You need to use gtk_moz_embed_get_title_unichar() instead. This
will hand you back Mozilla's internal UTF-16-like encoded string. You can use
one of the conversion functions to get a UTF-8 encoded string from that and then
you can convert it to the locale-specific encoding.
You can also throw the UTF-8 encoded string up using the new-style _NET* X
properties, assuming the wm supports it.
nautilus-1.0.4-35 should fix this problem. Well, it displays the same thing as
Mozilla itself for www.jp.redhat.com. It still looks kind of wrong, but
it must be a Mozilla not a Nautilus issue if so.
Disregard what I said about it looking wrong, we were testing it in en_US. ;-)
It looks fine in a jp locale.