From: Zoltan B. <zb...@du...> - 2005-04-13 19:29:35
|
Bob Doan =EDrta: >>I don't know the PDF internals enough to answer that. >>I think for my purpose it would be enough to accept the strings >>in UTF-8 and output them in ISO-8859-2. That would require only iconv. >=20 >=20 >=20 > Ok.. I'm changing things around a bit from how it worked in RLIB 1.2.0 >=20 > How does this sound: >=20 > 1) LIBXML is always utf8 and no work is needed there >=20 > 2) DataSources could really be in any encoding. I'll add a new api > rlib_datasource_set_encoder(r, "data_source", "iconv decoding..."); >=20 > 3) Paramaters passed in from rlib_add_parameter don't need to be touche= d > because the user can do this on their own (it will be assumed they are > in UTF8) >=20 > In the actual engine RLIB will use g_utf8 functions to do all the strin= g > stuff (We have wrappers in util.h.. I'll preform an audit to make sure > nothing has fallen out) >=20 > Outputs: >=20 > We will need to typically encode the output in order to make things > work. =20 >=20 > so rlib_set_output_encoding(r, "iconv encoding"); >=20 > In PDF for sure we probably need to do this. In HTML we need to do thi= s > **I think** and in the <HEAD> do something like > content=3D"text/html;charset=3Diso-8859-2" It's fine for me. Just yell when it works, I will test it. In the meantime I think I figured out what's the difference between how xine and rlib does. Black magic, thy name is automake! :-) > I'm using your name as my test bed to make sure this all works. :) OK. :-) Best regards, Zolt=E1n B=F6sz=F6rm=E9nyi |