Hi all,
My purpose is to transform an rdf utf-8 file into sql for mysql.
Data are both in french/english, in french there are stange caractere that
doesnt render well (���...)
What the output had to be ?
Mysql only support latin1 ?
I m lost in all that encodage !
Help me
I dont know how to parametrer the php parser I make.
// create parser
$xp = xml_parser_create("UTF-8");
// set element handler
xml_set_element_handler($xp, "elementBegin", "elementEnd");
xml_set_character_data_handler($xp, "characterData");
xml_parser_set_option($xp, XML_OPTION_CASE_FOLDING, TRUE);
xml_parser_set_option($xp, XML_OPTION_SKIP_WHITE, TRUE);
xml_parser_set_option($xp, XML_OPTION_TARGET_ENCODING, 'UTF-8');
Have I to decode / encode
// if (!($xml = utf8_encode($xml))) {
// echo 'ERROR'."\n";
// }
Thanks for all.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php