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

This forum can be browsed by the general public. Posting is no longer allowed as the product has been discontinued.
This topic is 6 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
jason@sbtc.com.tw
Posts: 26
Last visit: Wed Jan 17, 2024 11:18 pm

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

Post 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.
User avatar
Alexander Riedel
Posts: 8472
Last visit: Mon Mar 18, 2024 2:59 pm
Answers: 19
Been upvoted: 37 times

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

Post 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.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
jason@sbtc.com.tw
Posts: 26
Last visit: Wed Jan 17, 2024 11:18 pm

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

Post by jason@sbtc.com.tw »

original file and the corrupted file is attach.
Attachments
XintecMailDetected-byprimalpad.ps1
(14.94 KiB) Downloaded 406 times
XintecMailDetected.ps1
(14.95 KiB) Downloaded 390 times
User avatar
Alexander Riedel
Posts: 8472
Last visit: Mon Mar 18, 2024 2:59 pm
Answers: 19
Been upvoted: 37 times

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

Post 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?
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
jason@sbtc.com.tw
Posts: 26
Last visit: Wed Jan 17, 2024 11:18 pm

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

Post 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.
User avatar
jason@sbtc.com.tw
Posts: 26
Last visit: Wed Jan 17, 2024 11:18 pm

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

Post 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.
User avatar
Alexander Riedel
Posts: 8472
Last visit: Mon Mar 18, 2024 2:59 pm
Answers: 19
Been upvoted: 37 times

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

Post 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.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
jason@sbtc.com.tw
Posts: 26
Last visit: Wed Jan 17, 2024 11:18 pm

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

Post by jason@sbtc.com.tw »

try unicode files? but Primalpad has no option to let me choose to archive to UTF-8 format.
User avatar
Alexander Riedel
Posts: 8472
Last visit: Mon Mar 18, 2024 2:59 pm
Answers: 19
Been upvoted: 37 times

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

Post by Alexander Riedel »

2017-04-19_19-50-01.png
2017-04-19_19-50-01.png (34.95 KiB) Viewed 13572 times
Sure does.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
jason@sbtc.com.tw
Posts: 26
Last visit: Wed Jan 17, 2024 11:18 pm

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

Post 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.
This topic is 6 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.