On Sun, Apr 10, 2005 at 02:40:38AM -0300, John Coppens wrote: > Of all things, I didn't think this would be so difficult. I want to > put a string on the screen with electrical units, and the Ohms-(Omega) > character. I normally write characters in the locale set and then call > g_locale_to_utf8, but I can't find the character Omega in the local set > (0xBD is occupied with the 1/2 symbol).
If I understand correctly, you write strings in your compile-time locale charset and then convert these strings from run-time locale charset to UTF-8 with g_locale_to_utf8(). This is borken (beside inefficient), as these two locales can easily differ. Don't do that (and if you do that, be prepared people from non-Western countries will hate you). You can always write UTF-8 characters expanded with escapes "\xe2\x84\xa6" (this is Ohm sign which is different from capital Omega "\xce\xa9", BTW) if you don't want to use UTF-8 directly, which is no problem nowadays. Yeti -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list