Trouble with codepages
Raveen reported that he has some trouble with editing code where he uses the OEM drawing characters to draw a screen.
I’m trying to set the new Hammer (RC1) to use code page 437 (OEM-US,CP437)
Send EditorMessage SCI_SETCODEPAGE 437
But I can seem to do so – is it even possible ?
I reason for this is, I can some DF3 source files I would like to edit which requires the code page to be set to 437
#1 Updated by Wil van Antwerpen 2 months ago
This can be fixed as follows:
In cSciLexer.pkg change the default value of property pbAnsiMode to false:
Property Boolean pbAnsiMode False // If true translate text to ANSI on open and back to OEM on save
And add the line:
If (iCharSet<=0) Move SC_CHARSET_OEM to iCharSet
In procedure SetAdjustments in cEditorEdit.pkg and it works.
We will have to come up with a GUI setting for that as it is really missing.