[luatex] lua-inputenc
Elie Roux
elie.roux at telecom-bretagne.eu
Fri Feb 20 14:42:06 CET 2009
Javier Múgica a écrit :
> if b<128 then
> return c
> end
> if b<192 then
> return string.char(194, b)
> else
> return string.char(195, b-64)
> end
I'm using your older piece of code, which works the same (for the tests
I have made so far) :
unicode.utf8.char(string.bytes(b)) (IIRC)
is there a difference?
Also, is it possible to convert a fake UTF-8 char in the good range in a
8-bit character simply, or do we have to use a table?
--
Elie
More information about the luatex
mailing list