On Fri, Jul 16, 2004 at 11:10:03AM +0200, Nicolas Cannasse wrote:
> Hi list,
> For some of my project, I quickly need to encode an ISO-Latin-I string into
> I looked at support of UTF8 into ExtLib and it looks like this is not enough
> to do this. I'm not very familiar with Unicode but if I understand
> correctly, ExtLib support for it does not include some tables needed to do
> some kind of conversions. Since UTF-8 is one of the most used format of
> Unicode, would that be possible to add the tables (already present in
> Camomile I guess) into ExtLib ?
It's not very pretty, but the simplest way is often to run the
external command "iconv -f iso-8859-1 -t utf-8 > /tmp/temp_file",
piping in the content, and finally reading the temporary file.
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
PTHRLIB is a library for writing small, efficient and fast servers in C.
HTTP, CGI, DBI, lightweight threads: http://www.annexia.org/freeware/pthrlib/