A Swedish developer found out that extended characters got mangled up
Just got a report that "åäö" aka extended characters doesn't work any more after changing the code to the Scintilla editor.
Testing with that didn't show the problem for me (Wil). Nils send me a file to test with and I was able to reproduce.
After removing the ToANSI code in CM_Open and removing the ToOEM in WriteBlock there's still issues.
For one it does not display the characters correct.
However after hardwiring the characterset as OEM in cScintillaEdit.pkg procedure SetAdjustment this does work OK on my end.
This also relates to:
#1 Updated by Wil van Antwerpen over 4 years ago
- Status changed from New to In Progress
The Scintilla editor has code in cSciLexer method CM_Open to change all the text into ANSI and then on save it uses ToOEM in WriteBlock.
This somehow caused the text to get mangled.
Removing the ToAnsi/ToOEM translations fixed that, but now the text didn't get presented correctly.
By hardwiring the scintilla editor to an OEM characterset that part is resolved as well.
At least for Swedish local characters.