Page 1 of 2

primalpad can't handle the file, if the file include Traditional Chinese

Posted: Tue Apr 18, 2017 7:49 pm
by jason@sbtc.com.tw
Product, version and build: primalpad 2.4.63
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product: 64 bit
Operating system: windows 2008 R2 and windows 10
32 or 64 bit OS: 64

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

if use primalpadto to modif and save the file and the file include traditional Chinese.

The file will not be normal and can not be executed by powershell.

the original file is edit by PPS2017.

Re: primalpad can't handle the file, if the file include Traditional Chinese

Posted: Tue Apr 18, 2017 8:14 pm
by Alexander Riedel
Please attach the original file and the corrupted file so we can compare. Since we do not really know traditional Chinese it is hard for us to determine this any other way.

Re: primalpad can't handle the file, if the file include Traditional Chinese

Posted: Tue Apr 18, 2017 8:51 pm
by jason@sbtc.com.tw
original file and the corrupted file is attach.

Re: primalpad can't handle the file, if the file include Traditional Chinese

Posted: Tue Apr 18, 2017 10:54 pm
by Alexander Riedel
They seem to be fairly the same. Obviously I cannot read the chinese parts. Some kind of pointer at to what the problem actually is would be appreciated.
You say "The file will not be normal and can not be executed by powershell." I do not really know what that means. Can you please be a little bit more specific?

Re: primalpad can't handle the file, if the file include Traditional Chinese

Posted: Wed Apr 19, 2017 5:19 pm
by jason@sbtc.com.tw
I mean that when the file is save by primalpad, the ps1 can not be executed.
An error message will be displayed.

Re: primalpad can't handle the file, if the file include Traditional Chinese

Posted: Wed Apr 19, 2017 5:48 pm
by jason@sbtc.com.tw
i find where is problem.

Please use the hex editor to open two files and observe the first three bytes

Normal file The first three bytes are ef bb bf, indicating that this is a UTF-8 file.

But after the pnimalpad archived file, the UTF-8 flag is missing.

Re: primalpad can't handle the file, if the file include Traditional Chinese

Posted: Wed Apr 19, 2017 7:09 pm
by Alexander Riedel
Thank you for the update. Both files you sent are shown at UTF-8 here, but I will look into it. In the meantime, please try unicode files. It is generally a better option for this type of situation anyway.

Re: primalpad can't handle the file, if the file include Traditional Chinese

Posted: Wed Apr 19, 2017 7:36 pm
by jason@sbtc.com.tw
try unicode files? but Primalpad has no option to let me choose to archive to UTF-8 format.

Re: primalpad can't handle the file, if the file include Traditional Chinese

Posted: Wed Apr 19, 2017 7:51 pm
by Alexander Riedel
2017-04-19_19-50-01.png
2017-04-19_19-50-01.png (34.95 KiB) Viewed 13635 times
Sure does.

Re: primalpad can't handle the file, if the file include Traditional Chinese

Posted: Wed Apr 19, 2017 9:31 pm
by jason@sbtc.com.tw
Hi

it is not work.

open the normal file show me the Encoding is UTF-8.

than save the file.

get same problem.