My system:
Windows 7 x64
Default System.Text.Encoding: (Encoding name: UTF-8, CodePage: 65001)
I'm using SciTE with Lua- and AutoIt- scripts. AutoIt files are UTF8BOM encoded and Lua files UTF8.
Example AutoIt
ConsoleWrite('Ë Ä ' & Chr(203) & ' ' & Chr(196) & @CRLF)
#cs
File encoding: UTF8BOM
character.set=1000
-------------------------------
output (like expected): Ë Ä Ë Ä
#ce
Because the system codepage (property value: 0) is 65001, should the result be the same, if
output.code.page=65001. But it failed.
#cs
File encoding: UTF8BOM
character.set=1000
-------------------------------
output (wrong): xCB xC4 xCB xC4
#ce
But I can live with this, because the 1st set works.
Example Lua
print('Ë '..'Ä '..string.char(203)..' '..string.char(196))
--[[
File encoding: UTF8
character.set=1000
-------------------------------
output (wrong): Ã Ã Ë Ä
]]
--[[
File encoding: UTF8
character.set=1000
-------------------------------
output (wrong): Ë Ä xCB xC4
]]
This works in none case correct.
1. What can I do, to get true results with Lua?
2. Need I different property settings for Lua and AutoIt? (I would realize this with "OnOpen" event.)