serik Posted April 12, 2006 Share Posted April 12, 2006 Bonjour, je cherche une fonction permettant d'encoder une chaine au format unicode latin, telle que le fait la fonction unicode_encode, mais celle-ci n'est dispo que pour PHP5 CVS (et mon hébergeur est resté à la 4.3.X). (--exemple : é -> %E9, la même chose en java : URLEncoder.encode("lachaîne", "ISO-8859-1")). Merki. Link to comment Share on other sites More sharing options...
Baldurien Posted April 13, 2006 Share Posted April 13, 2006 raw_urlencode ? http://fr.php.net/manual/fr/function.rawurlencode.php Link to comment Share on other sites More sharing options...
serik Posted April 13, 2006 Author Share Posted April 13, 2006 Ok c'est ça (ou enfin presque, je préfère urlencode). Dernière question : comment on fixe le charset? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.