Hi,
I use GitHub starwing/luagbk to solve the character encode / codepage problem 
finally I think.
Now could write file name and path like this.
GBK is CP936 which is my computer's codepage.



```lua
gbk=require'gbk'
print(io.open(gbk.fromutf8[[f:\??.txt]]))
```


I continue your test all the same. Steps:

1. assign the file name manually, get correct `print` (in ZeroBrane Studio IDE) 
with no Error message.
2. get the string from `IupGetFile`, get incorrect print and with no Error 
message. (`io.open([[f:\??.txt]],'r')` will get error)
3. I open text.txt using notepad, in both case above, will get displayed 
correctly.
4. Use "Save as" of notepad could get its encoding:
    UTF-8 - embedDE file name, ANSI - IupGetFile.
5. I use Notepad2 check encoding above.


Although I think problem is solved. Any further test needed or suggestion is 
appreciate.
Thank you.
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to