Posted by Julien CROUZET on 02/17/06 14:44
Maximus a formulé ce vendredi :
> what if i wanted to convert from anything to ISO-8859-1
>
> let's say i want it converted from any type of text inserted by
> the user
'Anything' is quite dangerous here, a character code is generally
in more than one encoding, isn't there any way to store the encoding
(ie: guessed from HTTP Headers) in your database ?
Have a look at http://us2.php.net/manual/en/ref.recode.php to convert
quite 'anything' to quite 'anything'.
--
Julien CROUZET - DSI Theoconcept
julien.crouzet@/enlever ca\theoconcept.com
http://www.theoconcept.com
Navigation:
[Reply to this message]
|