rdf utf-8 to sql mysql latin1

From: Date: Wed, 27 Mar 2002 01:09:02 +0000
Subject: rdf utf-8 to sql mysql latin1
Groups: php.general 
Request: Send a blank email to php-general+get-90301@lists.php.net to get a copy of this message
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.

« previous php.general (#90301) next »