943,837 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 633
  • PHP RSS
Mar 16th, 2008
0

unicode to its orginal data

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
anitha2324 is offline Offline
11 posts
since Mar 2007
Apr 3rd, 2008
0

Re: unicode to its orginal data

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:
php Syntax (Toggle Plain Text)
  1. $converted_8895_2 = iconv("UTF-8", "iso-8859-2", $utf8_string);
Reputation Points: 27
Solved Threads: 16
Junior Poster
petr.pavel is offline Offline
116 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Need help with PHP order form
Next Thread in PHP Forum Timeline: MySql Stored procedure





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC