FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » utf8_encode(utf8_decode(string)) doesn't return same string
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: utf8_encode(utf8_decode(string)) doesn't return same string [message #180483 is a reply to message #180482] Thu, 21 February 2013 18:39 Go to previous messageGo to previous message
Giacomo M is currently offline  Giacomo M
Messages: 15
Registered: February 2013
Karma:
Junior Member
Il 21/02/2013 16:58, The Natural Philosopher ha scritto:
> "Please note that utf8_decode simply converts a string encoded in UTF-8
> to ISO-8859-1. A more appropriate name for it would be utf8_to_iso88591.
> If your text is already encoded in ISO-8859-1, you do not need this
> function. If you don't want to use ISO-8859-1, you do not need this
> function.
>
> Note that UTF-8 can represent many more characters than ISO-8859-1.
> Trying to convert a UTF-8 string that contains characters that can't be
> represented in ISO-8859-1 to ISO-8859-1 will garble your text and/or
> cause characters to go missing. Trying to convert text that is not
> encoded in UTF-8 using this function will most likely garble the text."

Not my case. I first encode an ISO string in UTF, after i decode the
same string. Why I get differet strings?

Thanks.

--
Giacomo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: On click button in php
Next Topic: reading from HID keyboard
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 20:37:46 GMT 2024

Total time taken to generate the page: 0.04150 seconds