Codepage Change

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

Codepage Change

Post by armsys » Fri May 31, 2013 2:31 am

Given a text string, how to change its encoding, say, from Windows 1253 to UTF-32 Little Endian?

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 31, 2013 9:02 am

Do you mean a text file? Strings don't have encodings. Files have encodings.

You could use iconv.exe:

http://dbaportal.eu/2012/10/24/iconv-for-windows/
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 31, 2013 9:17 am

Marcus,
Thanks for your reply.
HTTPRequest>{"http://www.mingpao.com"},,GET,,Text1
HTTPRequest>{"http://www.ejfq.com/home/tc/portfolio.h ... GET,,Text2

Text1 isn't readable thru MDL>.
Text1 is readable thru MDL.

Text1 contains:

Text2 contains:


That may explain the difference.

Question:
How to make Text1 readable by settting codepage to big5-hkscs.
I resent the website's choosing of big5-hkscs, which is very specific to Hong Kong.

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 31, 2013 9:22 am

To be honest I have absolutely no idea, sorry.
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 31, 2013 9:37 am

Marcus Tettmar wrote:To be honest I have absolutely no idea, sorry.
It's ok. If I find the answer, I'll let you know.

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

Post by armsys » Fri May 31, 2013 8:23 pm

Marcus,
Have you checked and confirmed the all string results created by HTTRequest are of nonBOM?

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