From: Andre A. <ar...@ki...> - 2012-05-10 15:32:13
|
John Labenski <jlabenski@...> writes: > It is up to the Lua programmer to know (or check) if a string may > contain multibyte Unicode chars or not before using Lua's string > functions since they assume single byte chars. maybe hard to do: example Format\FORMAT~4.LUA is returned by fullName.ShortPath this is not a utf8 string ~ is 126 Format\FORMAT~4.LUA F 70 o 111 r 114 m 109 a 97 t 116 \ 92 F 70 O 79 R 82 M 77 A 65 T 84 ~ 126 4 52 . 46 L 76 U 85 --------------- so string.match(fullName.ShortPath,'(.*)%.lua') returns nil Andre |