Ok. Thanks for the feedback.

Best,
Scuri


Em ter, 11 de set de 2018 às 14:38, 云履 <robert...@qq.com> escreveu:

> Hi,
> I use GitHub starwing/luagbk <https://github.com/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
> <https://www.baidu.com/link?url=xaANMnTjcfXluv18dVqbcRvmw64n-olHDnlSVYePoco9EBnMnXq7b8I-IBqVp6Ra&wd=&eqid=da89008300001566000000035b97fc28>)
> 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
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to