Character Encoding for em-dash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

My client has a database (Sybase) in which a table column URL contains a
string like-
http://www.pjonline.com/cpd/nutrition_ _drugnutrient_interactions

The box like un-recognized character is emdash.
I need to display the data on the web lets say in a HTML page where box
should be decoded somehow to be displayed as emdash. We cant change anything
in the dataabse as such. So anything we need to do has to be done on the
fly.

I have tried using online tool like http://2cyr.com/decode/ which just
converts the string to a best match decoded string and also displays box as
emdash!!
This means we can do something in PHP to convert the box to emdash somehow.

Is there any possibility in php to convert to real emdash?

I have alreasy tried urldecode, mb_convert_encoding etc. Also the
interesting thing is that "http://2cyr.com/decode/"; website says that the
string is of encoding hp-roman8!

I want the string to look like-
http://www.pjonline.com/cpd/nutrition_--
_prescribing_parenteral_nutrition.html

Any help?

Thanks,

Gaurav Kumar

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux