Hi,
wxString str = wxString(luastr, wxConvUTF8);
return str.Length()==0 ? wxString(luastr) : str;
This solution may look crazy but works surprisingly well.
We have no idea what kind of file has just been read.
Guessing is are only choice. If it is not UTF8 we are in trouble.
What happen to string.match(string,"%a") in either cases for example?
Andre
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users