Re: Problem with setting of URF-encoding
Bob Doan <[email protected]> Mon, 23 Jan 2006 09:57:05 -0500
| Newsgroups | gmane.text.rlib.user |
|---|---|
| Message-ID | <[email protected]> |
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);
>
> ?>
>
> --------------------
> Ilic Aleksandar
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd_______________________________________________
> Rlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rlib-users
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642