ReadFile Unicode

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

ReadFile Unicode

Post by armsys » Fri May 24, 2013 1:31 pm

When reading a Chinese text file into a variable by ReadFile>, the content is corrupted.
ReadFile>C:\Temp\Test2.txt,ClpText
Please help. Thanks.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri May 24, 2013 4:10 pm

ReadFile should already detect the BOM and open accordingly. Does your text file have a valid BOM?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Fri May 24, 2013 9:57 pm

Marcus,
Marcus Tettmar wrote:Does your text file have a valid BOM?
You're asking the right question. The text file is created by HTTPRequest. So the problem source (culprit) rests upon HTTPRequest.
Thanks for your help.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Sat May 25, 2013 3:05 am

Marcus,
ReadFile is perfectly ok.
But HTTPRequest is buggy.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sat May 25, 2013 6:16 am

As I said earlier in another post, we are investigating the httprequest issues. It is in our bug tracker.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts