Characters not displayed correctly

9 views
Skip to first unread message

topwizpr...@gmail.com

unread,
Jan 12, 2022, 10:12:38 AM1/12/22
to scintilla-interest
When I edit a text file with the Registered symbol (hex AE), it shows as 'A with circumflex' (Hex C2) followed by the Registered symbol.

The file is plain Ansi with no BOM character. I am setting SCI_SETCODEPAGE to zero.

Notepad++ displays it correctly and it uses Scintilla so I must be missing something.

Please advise. Thanks.

Neil Hodgson

unread,
Jan 12, 2022, 4:00:55 PM1/12/22
to Scintilla mailing list
topwizpr:

> When I edit a text file with the Registered symbol (hex AE), it shows as 'A with circumflex' (Hex C2) followed by the Registered symbol.
>
> The file is plain Ansi with no BOM character. I am setting SCI_SETCODEPAGE to zero.

That appears to mean the file is in UTF-8 so set code page to SC_CP_UTF8.

Neil

topwizpr...@gmail.com

unread,
Jan 12, 2022, 5:03:39 PM1/12/22
to scintilla-interest
I was setting code page to zero on ansi files. I deleted that line of code and now it works properly.
Reply all
Reply to author
Forward
0 new messages