From: Andre A. <ar...@ki...> - 2012-05-09 18:45:30
|
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 |