0

Hi All
I have a question , i am doing small interface ( using php,mysql,IIS) , the data stored in the database as unicode data , now i want to retreive the data and display those data in php interface but it should not in unicode format ( so i need to convert it to it orginal data) so how to convert unicode to its orginal data

note the data stored in the table like this

Name
0245875224485

data should be displayed like this in ( php interface)

Name
Anitha

Needed urgently am newbie to php

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by petr.pavel
0

Hi Anitha,
I'm sorry but "0245875224485" isn't a unicode format for anything but "0245875224485".
"Anitha" in unicode would again be "Anitha". I guess that when you try to convert Unicode to some ISO charset you will find out that it didn't help.

But let's stick to your specs. To convert a string from UTF-8 (say we're talking about UTF-8 here; "unicode" is rather a general word and can mean more than one thing) to ISO-8895-2 (I don't know what your "original" charset was) you can use iconv() function:

$converted_8895_2 = iconv("UTF-8", "iso-8859-2", $utf8_string);
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.