> 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.
One trick I use to avoid ending up with a long illegible string of ugly \xXX's, is to #define them to readable names. #define OHM "\xe2\x84\xa6" #define OMEGA "\xce\xa9" gchar *normal = "The \xce\xa9 and \xe2\x84\xa6 signs DO differ."; gchar *defines = "The "OMEGA" and "OHM" signs DO differ."; The two strings compile to the exact same binary string. It looks a little odd, but not nearly as odd as the alternative... And you can actually read it this way! :) Oh, if you write a bunch of OHM and OMEGA signs one after the other, you can see a subtle differences the characters. It would be good to know how to tell if a given character is actually defined or not, but hopefully this little tip will help. Fredderic _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list