[Resolved]Moho script code cannot read path files with non English names(including Chinese and Japanese)
Posted: Fri Aug 30, 2024 11:57 am
This problem has been bothering me for a long time. Today, on Discord, I saw SimplSam's sharing of utf8_filenames.lua, and with a try it out attitude, I didn't expect it to really solve the problem(Chinese and Japanese, excluding Korean).
Just copy utf8_filenames.lua, files that were previously not supported for reading can now be read, but I have provided a simple script file to demonstrate.
method:
1. Copy utf8_filenames.lua to the folder: C:\Program Files\Moho 14\Resources\Support\Scripts\Utility
2. Copy xsz_ReadnonEnglishfile.lua to the folder: C:\Program Files\Moho 14\Resources\Support\Scripts\Tool
3. Open Moho and use this script to test file reading. If successful, the content of the first line of the file will be returned.
Download link:https://pan.huang1111.cn/s/Nk9z4H1
Just copy utf8_filenames.lua, files that were previously not supported for reading can now be read, but I have provided a simple script file to demonstrate.
method:
1. Copy utf8_filenames.lua to the folder: C:\Program Files\Moho 14\Resources\Support\Scripts\Utility
2. Copy xsz_ReadnonEnglishfile.lua to the folder: C:\Program Files\Moho 14\Resources\Support\Scripts\Tool
3. Open Moho and use this script to test file reading. If successful, the content of the first line of the file will be returned.
Download link:https://pan.huang1111.cn/s/Nk9z4H1