Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| scripting:encoding [2014/02/09 01:50] – external edit 127.0.0.1 | scripting:encoding [2018/01/10 20:36] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Scripting Text Encoding ====== | ====== Scripting Text Encoding ====== | ||
| - | Scripting functions in HippoEDIT (as internal functions of editor) always operate with Unicode (UTF-16 LE). | + | 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. | + | 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. | It is not possible to force scripting engine to use different code page rather than UTF-16. | ||
| But: | But: | ||
| - | * If you only want document to be saved in specific code page and reloaded correctly, you can set initial document encoding (before any text manipulation) by using property [[scripting: | + | * If you only want a document to be saved in specific code page and reloaded correctly, you can set initial document encoding (before any text manipulation) by using property [[scripting: |
| - | * If you want to convert text from one encoding to another, you can change [[scripting: | + | * If you want to convert text from one encoding to another, you can change [[scripting: |
| - | * If you want actually do conversion manually for some part of the text you can use [[scripting: | + | * If you want actually do the conversion manually for some part of the text you can use [[scripting: |