On Sunday 08 April 2007 17:15:59 Michael Sweet wrote: > Mariwan wrote: > > ... > > In fact I am not new with utf8 or the unicode. My question was about > > using const char pointers to holde text which is not ansi. All > > comparision and class name ...etc done in fltk will be based on ansi > > and not utf8. Look at the code. when you have a lable with utf8 > > coding how can you compare it with another string that could be also > > utf8*? > > The normal string functions work just fine with UTF-8 - they're just > strings of 8-bit characters. >
One regard though. "Normal" C/C++ functions/methods work well with UTF-8 Unicode encoding only if byte mapping is in question in byte counting/comparing. However if one for example wants to perform case insensitive comparation between two UTF-8 strings, that is to use "toupper" and "tolower" function, it wont work, unless (UTF-8) locales is used with wide char's (wchar_t) and then return as a UTF-8 string with i.e. "wcstombs()" fucntion, to FLTK as char string. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

