From: Bob D. <bd...@si...> - 2006-01-23 17:55:31
|
Hi, Can you send me a sample XML file and I'll take a look @ it. It would be helpful to include a solid UTF-8 example of what characters I should be seeing. (possibly a screen shot) My Slovenian is not up to par. On Mon, 2006-01-23 at 18:30 +0100, Aleksandar Ilic wrote: > This is beggining of XML >=20 > <?xml version=3D"1.0" encoding=3D"utf-8"?> > <!DOCTYPE report > > <Report fontSize=3D"9" orientation=3D"Portrait"> > <ReportHeader> >=20 > It is example from rlib docs. I already pasted PHP code. > I replace some text from XML file with unicode chars from my language > (central europian) (=C5=A1=C4=91=C4=8D=C4=87). And in PDF , that string= is show only till > those utf-8 letters. > I also tried to generate HTML and result is the same. And in header of > HTML there is no meta tag for UTF-8 >=20 > On 1/23/06, Bob Doan <bd...@si...> wrote: > > Which encoding did you try? > > > > How does your document look when you run "xmllint" on it? > > > > - Bob > > On Mon, 2006-01-23 at 18:09 +0100, Aleksandar Ilic wrote: > > > Hello, > > > it does not help. I tried it :( > > > > > > On 1/23/06, Bob Doan <bd...@si...> wrote: > > > > Hi, > > > > > > > > You need to get the encoding right in your XML file. > > > > > > > > Something like: > > > > > > > > <?xml version=3D"1.0" encoding=3D"ISO8859-1"?> > > > > > > > > This is a probably an XML issue and not a RLIB issue. I **think*= * you > > > > can set the encoding to utf-8. Zoltan would probably know better. > > > > > > > > - Bob > > > > > > > > > > > > On Mon, 2006-01-23 at 12:20 +0100, Aleksandar Ilic wrote: > > > > > Hello > > > > > I am trying yo set up UTF-8 encoding, but it just not working > > > > > I have some text in xml template written in utf-8, and rlib jus= t > > > > > ignore everything from that char to the end of the that string. > > > > > If I choose to generate HTML, encoding meta tag is not setted > > > > > > > > > > this is my code > > > > > <?php > > > > > > > > > > dl("rlib.so"); > > > > > > > > > > $format =3D "html"; > > > > > $sql_host =3D "localhost"; > > > > > $sql_users =3D "root"; > > > > > $sql_password =3D "secret"; > > > > > $sql_database =3D "test"; > > > > > > > > > > $rlib =3D rlib_init(); > > > > > > > > > > rlib_set_output_encoding($rlib, "utf-8"); > > > > > //rlib_set_locale($rlib, "sl_SI.utf8"); > > > > > > > > > > //echo rlib_version(); > > > > > > > > > > rlib_add_datasource_mysql($rlib, "mysql", $sql_host, $sql_users= , > > > > > $sql_password, $sql_database); > > > > > rlib_add_query_as($rlib, "mysql", "select * from example", "exa= mple"); > > > > > rlib_add_report($rlib, "report.xml"); > > > > > rlib_set_output_format_from_text($rlib, $format); > > > > > rlib_execute($rlib); > > > > > header( rlib_get_content_type($rlib)); > > > > > rlib_spool($rlib); > > > > > rlib_free($rlib); > > > > > > > > > |