Re: [WEE] code page mystery
- Posted by irv Nov 03, 2017
- 1828 views
OK, I downloaded Scite (which uses the same scintilla editor as Wee), and it also shows the weird boxes. Then, I changed Scite's global settings by commenting out code.page=0 and uncommenting code.page=65001. Now the puts(1, "ÄßC" ) is readable.
So...Try adding the first line below to wee.exw:
ssm(SCI_SETCODEPAGE,SC_CP_UTF8) -- added by Irv ssm(SCI_SETMARGINWIDTHN, 0, 48*line_numbers) -- line numbers margin visible ssm(SCI_SETMARGINWIDTHN, 1, 0) -- non-folding symbols margin hidden
Now, the line is readable in Geany, Wee, Scite, GEdit, LibreOffice, Xed, and of course, displays correctly when run in a Gnome terminal set to UTF-8.