Author Topic: Script Charset definition  (Read 2077 times)

Offline RJP74

  • Registered User
  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Script Charset definition
« on: October 11, 2013, 05:11:57 pm »
I have a small text file using ANSI characters which shows correctly when using codepage 1252.
I wanted this converted to HEX so wrote a small script. However, the result is wrong.
I suspect the scripting engine is using unicode rather than the codepage of my text.
How can I force the script engine to use a specific codepage?
I know that the codepage can be set on parts of a file but a solution that assumes a codepage for the entire file will be fine.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Script Charset definition
« Reply #1 on: October 16, 2013, 11:42:43 pm »
Hi R,

check this http://wiki.hippoedit.com/scripting/encoding

Maybe you can use third option mentioned on wiki.

BR, Alex.

 

Related Topics

  Subject / Started by Replies Last post
12 Replies
3640 Views
Last post May 03, 2009, 05:35:43 pm
by alex
1 Replies
2653 Views
Last post September 27, 2009, 07:47:24 pm
by Stefan
15 Replies
6427 Views
Last post May 05, 2010, 08:03:04 pm
by alex
3 Replies
2711 Views
Last post November 30, 2011, 12:20:59 am
by alex
0 Replies
2135 Views
Last post February 29, 2012, 09:56:26 pm
by alex