You are here: PSPad forum > Bug report / Hlášení chyb > Re: Cannot save OEM characters
Posted by: Freeman | Date: 2013-09-23 10:47 | IP: IP Logged
Regarding to this topic.
PSPad looses block characters when saving this sample using OEM encoding, but saving to UTF-8 works. I've wrote about it before.
▄███████████████████▄
███████████████████████▄
▄███░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒███ ▄████████████▄
▄██▓▓▓▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██▒ ███▓░░ ░█████▄
▄██████████░▒███████▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒▒▓████▓ ▓██▄
▄███ ░███▒▒▒▓▒▒▒▓█████▒▓▓▓▓▓▓▓▓▓▓▓███▓▒▒▒▒██ █████████▓ ▒██
██ ░▓███░ ░█▓▒▓▓▒▓█████▓▒▒▒▒▒▒▒▒▒▒▒▒▓█████▓▒▒█ ██████████████▓ ██
█▓ ▒█████████▒ █▓▒▒▓███▒░░▒▒▓▓███████▓▓▓▒▓▒███▓█ ████░ ▒█▓▒██ ░ ▓█
█░ ████▓ ▒████░ █▓███▓▒▓██▓▓▓▓▓▓▒▒▒▓▓▒▒▒▒▒▒▓▓██░▓██▒ ░████▒ █▒▒██ ▒░ █
█▒ ░████ ███ ░█▓█ ████▓▓▓███████▒▒▓▓▒▒███████████▓▓█ ████████████▒██ ░░ █
█ ░ █░█ █████████░█ ░ ██░▓████▓ ▓███▓▒████▓ ▓███▓████▒ ░██░▒▒██ ▄█
█ ▒ █▒█ █▓█ ▓████ ░ ▒████▓ ▓██▓█▓ ▓█▓▓▒▓█ ████▒ ██████
█ ▒ ██ █░█ ░▒░ ░▓ ░░ ██▓ █▓▓ ███▄ ███████░░░ ▓█▓▓██▀
█ ░▒ ███░▓█ ░▒▒▒░ █▓ ▄███ ▓█▓█▓ ▀███ █ ▒█▓█▓ ▓██▓▓███
██ ░░ ░▓███░░ ▓███ ▒█▓ ███▀ ▓████████▓ █░ ░█████▒▓███▀
█▒ ░▓█▓ ▒█████▓█▓ ▓██▓ ████ ░▓▓█████ ▓██ ▒███▒▓████▀
█████████████▓▓███▒ ░░ ███░ ██▒ ████████▓█████▓░▒▓▒▒▓▓ ▀█████▀
▀███▓▒▒▒▒▓████░ █ ░▒▒▒░ ▒████ ████▓▓▓▓▓▓▓▓▓▓▓█▓████████▒ ██▀
Posted by: Freeman | Date: 2014-11-12 09:38 | IP: IP Logged
Jan, what about this bug? It still presents in the latest 2517 build.
Posted by: pspad | Date: 2014-11-12 11:09 | IP: IP Logged
Hello
Sorry, I didn't notice this topic. Maybe due to your semigraphic spam filtr deleted it.
PSpad uses system conversion from unicode to OEM. I need to make some tests. If you have any similar file, send it to support file please.
Posted by: Freeman | Date: 2014-11-15 18:46 | IP: IP Logged
I previously wrote about CharToOem/OemToChar functions, which replace pseudographics with similar characters. You fixed only reading of OEM files, but saving remains broken. Now PSPad can read file, but cannot save it unbroken being edited.
Please fix it using WideCharToMultiByte instead of CharToOem.
Posted by: pspad | Date: 2015-03-21 21:22 | IP: IP Logged
Too much reports but too little time...
I will take a look on this problem. You must remind me from time to time
Posted by: pspad | Date: 2015-03-24 07:43 | IP: IP Logged
Fixed. I tested save and load.
I replaced all ANSI code page hanedling using WideCharToMultiByte()
Next step is add support for full range of code pages supported by system.
Posted by: Freeman | Date: 2015-03-24 20:56 | IP: IP Logged
pspad:I replaced all ANSI code page hanedling using WideCharToMultiByte()
Great! Wait for next build.
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