Andre Arpin writes:
>
> example Format\FORMAT~4.LUA is returned by fullName.ShortPath
> this is not a utf8 string ~ is 126
>
> Format\FORMAT~4.LUA
I ran some more test the problem is gone I must go so I will look at it next
week.
Andre
---
John Labenski writes:
> It is up to the Lua programmer to know (or check) if a string may
> contain multibyte Unicode chars or not before using Lua's string
> functions since they assume single byte chars.
maybe hard to do:
example Format\FORMAT~4.LUA is returned by fullName.ShortPath
this is
On Wed, May 9, 2012 at 2:45 PM, Andre Arpin wrote:
> 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.
> Guess
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.
Wha