Reece Dunn: > The UTF8 <==> UCS conversion utilities in scintilla/src/UniConversion.h > would be useful to the outside world. For example, in my application, I am > returning the selected text and searching using UCS encoded Windows BSTRs.
At least one person thinks that UniConversion sucks and mailed me extensively on the subject. Its normally better to use platform facilities for this. Scintilla defines enough for just its use so it doesn't have to unify platform calls. If you want better generic Unicode features use a project like ICU that is meant for the job. SinkWorld has better code than Scintilla. http://icu.sourceforge.net/ > NOTE: The conversion algorithm doesn't handle the 4th UTF8 byte. I'm > assuming this is due to lack of support for UTF16 surrogate pairs and > Unicode planar characters in Windows. AFAICT non-BMP use of Windows requires the Chinese GB-18030 add on. SinkWorld supports non-BMP characters but I won't bother with it yet for Scintilla. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
