Jul 1, 2010 at 4:08 PM
Edited Jul 1, 2010 at 7:32 PM
I'm currently writing an IntelliSense-implementation for my new program; but there is one problem I'm not able solve:
When I paste one german umlaut (e.g. "ä" or "ö") first all works well...but when I call Selection.Start it seems to return a wrong value.
I've tested the following:
Text in control: "ä\r\n"
It would be better if Unicode-characters are counted as single characters, not as bytes...or is there any property/function that returns the real count of characters (e.g. "1", not "2" for "ä")?
Or is it possible to use ANSI (which would be much easier)?
When I set Scintilla.Encoding = System.Text.Encoding.Default it throws an Exception; using the NativeInterface.SetCodePage()-Function works, but all pasted german umlauts are displayed as "E4" or similarly; typed characters are correctly displayed
Do I have to convert every character pasted by program to ANSI (Encoding.Convert(...)) or is there another way to use ANSI?
Please help me, I've written an entire lexer for my new language, an own IntelliSense-implementation and a folding-function, but I'm failing at this simple problem... :-)
PS: If there are mistakes in my language: Sorry...I'm german and recently in the 11th class. ;-)
EDIT: Is there a bug in this forum? All my newlines aren't displayed...?