Closed jalomic closed 4 years ago
okay, I will look into this issue :)
p.s. your script file should in UTF-8 encoded, can you offer a file for test? thanks :)
Checked with CP-1251 and UTF-8 encoding on Windows with Russian language as default, no problems have occured. Added: Oops, it's Android issue. My bad...
I have not android environment, but in my macOS it seems all right. maybe you should check whether the source file is in UTF-8 encode first?
Checked on windows and mac os, no problem have occured too =) but damn android !
but why? I use the charset that parsed from Unicode Database, not specified by any system. it impossible working on Desktop but not on mobile :-(
can you give Android test case (apk file and source text file in assets of ask) and I have a try?
you could make a apk, read file in assets, and use lua-utf8 to show the result, and I could replace this file to see difference.
local word_start, word_end = utf8.find(test_remove, remove_word,1, true) --word_start and word_end are nil
on Mac OS all OK