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

Support for all customers who have purchased or received a Productivity Pack Support product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
jason@sbtc.com.tw
Posts: 17
Joined: Thu Apr 13, 2017 8:32 pm

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

Post by jason@sbtc.com.tw » Tue Apr 18, 2017 7:49 pm

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: 6515
Joined: Tue May 29, 2007 4:43 pm

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

Post by Alexander Riedel » Tue Apr 18, 2017 8:14 pm

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: 17
Joined: Thu Apr 13, 2017 8:32 pm

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

Post by jason@sbtc.com.tw » Tue Apr 18, 2017 8:51 pm

original file and the corrupted file is attach.
Attachments
XintecMailDetected-byprimalpad.ps1
(14.94 KiB) Downloaded 29 times
XintecMailDetected.ps1
(14.95 KiB) Downloaded 28 times

User avatar
Alexander Riedel
Posts: 6515
Joined: Tue May 29, 2007 4:43 pm

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

Post by Alexander Riedel » Tue Apr 18, 2017 10:54 pm

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: 17
Joined: Thu Apr 13, 2017 8:32 pm

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

Post by jason@sbtc.com.tw » Wed Apr 19, 2017 5:19 pm

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: 17
Joined: Thu Apr 13, 2017 8:32 pm

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

Post by jason@sbtc.com.tw » Wed Apr 19, 2017 5:48 pm

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: 6515
Joined: Tue May 29, 2007 4:43 pm

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

Post by Alexander Riedel » Wed Apr 19, 2017 7:09 pm

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: 17
Joined: Thu Apr 13, 2017 8:32 pm

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

Post by jason@sbtc.com.tw » Wed Apr 19, 2017 7:36 pm

try unicode files? but Primalpad has no option to let me choose to archive to UTF-8 format.

User avatar
Alexander Riedel
Posts: 6515
Joined: Tue May 29, 2007 4:43 pm

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

Post by Alexander Riedel » Wed Apr 19, 2017 7:51 pm

2017-04-19_19-50-01.png
2017-04-19_19-50-01.png (34.95 KiB) Viewed 1372 times
Sure does.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
jason@sbtc.com.tw
Posts: 17
Joined: Thu Apr 13, 2017 8:32 pm

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

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

Hi

it is not work.

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

than save the file.

get same problem.

Locked