RobertL

Results 40 comments of RobertL

I test your path on my computer, return is correct. Windows10, Code Page 936, script document in UTF8, lua 5.3, luacom 1.4?. Also, could use regex ```lua _,_,strParent = string.find('C:\\Root\\ĀĒĪŌŪ...

Sorry, I missed the '5.1'. Test using 5.1, same issue. ```lua assert(#"C:\\Root\\ĀĒĪŌŪ Unicode"==26 and #'ĀĒĪŌŪ'==10) strParent = fso:GetParentFolderName("C:\\Root\\ĀĒĪŌŪ Unicode\\Folder") assert(strParent==[[C:\Root\ĀĒĪŌŪ Un]] and #strParent==26-5) ---- assert(#'C:\\Root\\啊啊啊啊啊 Unicode'==31 and #'啊啊啊啊啊'==15)--3 bytes per...

Hi, @tatewise I got a workaround, but not sure if has limitations - I don't known about code point. Maybe only another workarounds just for `GetParentFolderName(...)`🤣 The key is to...

OK, wish you good luck~ And, just mention again, if replaceable, some of the function about `Folder` object, `File` object (as I just take a glance) of FSO could implement...

Wait, I use them under gbk (CP 936) system environment, which may handle many non-ANSI characters, too. In my practice, need to convert from utf8 to gbk (my system code...

Oh, then try [iconv](https://en.wikipedia.org/wiki/Iconv), - convert between various encode, there is a lua bind on windows, but need to compile(and I'm not familiar), not had a try. Or, could convert...

Hi, there is another solution, [utf8_filenames.lua](https://gist.github.com/Egor-Skriptunoff/2458547aa3b9210a8b5f686ac08ecbf0). Not ideal for me, since I use 'gbk' convert. But could try.

Yes, I see, very limitation 😂 Although gbk encode convert is enough for me , I'm still searching a general solution too. Seems `iconv` is the best solution I can...

Hi, I have built and test [lua-iconv](https://github.com/ittner/lua-iconv) (based on [[libiconv - GNU Project - Free Software Foundation (FSF)](http://www.gnu.org/software/libiconv/)](http://www.gnu.org/software/libiconv/)) in Windows 10, with Lua 5.3, works fine, could have a try~

I failed compile, too. Using MSBuild Tool (stand alone package from Microsoft Visual Studio) with `Makefile53.win`. Such as `..\luacom\source>nmake Makefile53.win all` from 'Visual C++ 2015 x86 Native Build Tools Command...