You are here: PSPad forum > English discussion forum > OEM characters

OEM characters

#1 OEM characters

Posted by: cyberdanny | Date: 2013-02-20 07:53 | IP: IP Logged

Hi all, I am using PSPad for editing .prg files for [x]Harbour. PSPad is very good, however I have a couple of problems.
If I select format OEM, some characters are not rendered as expected, f.e. ascii 209 shows different from the semi-graphic character I want. Moreover, if I save the file, those characters are messed up so that the final executable shows strange symbols instead of the desired characters.
The second problem: if I open a .prg file the syntax highlighter works fine, but if I open a file with different extension I have not figured out how to apply the desired syntax highlighter.
Thanks in advance for any suggestion.
Dan

Options: Reply | Quote | Up ^


#2 Re: OEM characters

Posted by: Freeman | Date: 2013-03-05 23:07 | IP: IP Logged

I've wrote about this issue on pspad.nlift.com. The problem is in OemToChar function. Direct use of MultiByteToWideChar with CP_OEM will fix this issue.

Options: Reply | Quote | Up ^


#3 Re: OEM characters

Posted by: pspad | Date: 2013-05-11 08:44 | IP: IP Logged

I will use directly MultibyteToWideChar for OEM file opening.
Change will be available in the next build

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR