Robert Knight wrote:

I'm sorry if I am missing something obvious here, but how do you get
unicode characters from a scintilla control?

I can display them quite easily, after changing the code page using
SCI_SETCODEPAGE, it is just retrieving them afterwards that is the
problem.

I have tried using the SCI_GETCHARAT and SCI_GETTEXTRANGE messages,
but they seem to only retrieves single characters.

Also, since all of the Scintilla commands use char* buffers, is there
anything I need to do specially to cast them to wchar_t* buffers so
that they can be passed to Unicode commands on windows (eg. MessageBoxW)

Note that Scintilla supports UTF-8 encoding of Unicode - so the buffers are still [sort of] dealing with chars.

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to