Problem with setting of URF-encoding
Aleksandar Ilic <[email protected]> Mon, 23 Jan 2006 12:20:01 +0100
| Newsgroups | gmane.text.rlib.user |
|---|---|
| Message-ID | <[email protected]> |
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=lnk&kid3432&bid#0486&dat1642