Nothing that will let you have your cake and allow you to eat it as well. You either have to convert to upper case and use string.gsub() which doesn't care about the byte-width of characters, or use my first approach which will maintain the string case as is, but will likely fail on Unicode in the @Resources path.balala wrote: I think there is no (good) solution for this?
Lua is fine with Unicode, with the exception of any functions that depend on string "length" or character "position". A single mutli-byte Unicode character is seen as two characters by Lua. Lua lives in an 8-bit world...