|
From: Bob D. <bd...@si...> - 2006-01-23 17:16:53
|
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="1.0" encoding="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 just
> > > 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 = "html";
> > > $sql_host = "localhost";
> > > $sql_users = "root";
> > > $sql_password = "secret";
> > > $sql_database = "test";
> > >
> > > $rlib = 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", "example");
> > > 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);
> > >
|