Hello,

does ConTeXt contain a built-in Lua conversion routine to convert text in 
UTF-16 (and others) to UTF-8 string?

Something like:

----
\startluacode
  local str = "A unicode string" -- Or e.g. string loaded from a file

  str = convert(str, "utf16", "utf8")

  context(str)
\stopuacode
----

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:[email protected]
Pontex s. r. o.      | mailto:[email protected] | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to