|
From: Aleksandar I. <ili...@gm...> - 2006-01-23 11:20:18
|
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 =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", "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
|