Author Topic: Script Charset definition  (Read 2245 times)

Offline RJP74

  • Registered User
  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Script Charset definition
« on: October 11, 2013, 06: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: 2187
  • Karma: +37/-3
    • HippoEDIT
Re: Script Charset definition
« Reply #1 on: October 17, 2013, 12:42:43 AM »
Hi R,

check this

Maybe you can use third option mentioned on wiki.

BR, Alex.