Scripting functions in HippoEDIT (as internal functions of the editor) always operate with Unicode (UTF-16 LE). The original document encoding (code page) is only relevant during reading or saving of the document when external file data is converted into internal HippoEDIT data.
It is not possible to force scripting engine to use different code page rather than UTF-16.
But: