On Saturday 07 April 2007 22:02:29 Mariwan wrote: > Hi all, > It seems that even in fltk 2 the label is stile const char* declared. > Widget(int,int,int,int,const char* =0); > > Should not be ....const wchar_t*=0 , Is it wrong or what? > thanks for your reply > Mariwan
As much as I know about FLTK 2.x, it only supports UTF-8 Unicode *encoding*. Size of "wchar_t" type is system specific, and may be 4 bytes (int) long, which is probably UTF-32 encoding and contains exact Unicode code-point (like in Linux) or 2 bytes (short int) long, which is UTF-16 encoding (used in Windows and Java platform for example). UTF-8 is only Unicode *encoding*, it is not to be confused with compression and there are several Unicode encodings (among which two are already mentioned above: UTF-32 and UTF-16) and every has it's pros and cons. UTF-8 uses *sequence* of bytes or characters (1 byte == 8-bit, therefore UTF-8) to represent certain Unicode character and not only single "char" (byte). Don't mix this. So for example in Serbian, Cyrillic UTF-8 encoded letter 'Ћ' is represented as two byte sequence "\xd0\x8b", that is two *char's*. If you are new with all this, I suggest you first visit these two pages http://en.wikipedia.org/wiki/Unicode and http://en.wikipedia.org/wiki/UTF-8 and if you need more info, work your way from there, sole documentation on http://www.unicode.org might be a little bit too overwhelming/confusing for someone who meets Unicode encodings for the first time. Good luck. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

