lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Theodor-Iulian Ciobanu a écrit :
  What modules do I need to be able to use unicode with Lua? (especially parsing of logs). And is there a way to use both ANSI and Unicode?

Unicode... I am not specialist, but I already know this is vague, it depends on the encoding.
Do you mean UTF-8 (no problem, AFAIK), UTF-16 (eg. Windows), other?
Which system? (Windows, I guess, judging from your signature...)
Is it just UTF-16 encoded Ascii (ie. English-like text) or do you need to handle multibyte languages, like Asian ones? In the first case, you can just make something like the io library, using Windows native API to convert Unicode to Ascii.
Otherwise, it is more work...

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --