John Labenski escreveu:
Where are the functions "encode" and "setlocale" from?
encode = function(s)
s = string.gsub(s, "(.)", function (c) return string.format("%02x",
string.byte(c)) end)
return s
end
I must set locale in two env.
lua: os.setlocale('Portuguese - Brazil')
wx: wx.wxLocale(wx.wxLANGUAGE_PORTUGUESE_BRAZILIAN)
What OS are you running and what wxLua binaries? Did you compile wxLua
yourself and if so with what Unicode settings?
win2000. I compiled myself and not the unicode project. I compiled
'release multilib' mode.
Can you try to debug it this way
a = list:GetStringSelection()
b = 'Amanhã'
print(string.len(a), string.len(b))
for i = 1,string.len(b) do
print(string.byte(a, i), string.byte(b, i))
end
the result is the same, but in other mode:
7 6
65 65
109 109
97 97
110 110
104 104
195 227
Regards,
John
I will test compile unicode mode.
Interesting in previous versions I don't had this problem.
Thanks.
--
Marcos E. Wurzius
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users