From: Gaurav Kumar on 17 Jun 2010 11:33 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
From: tedd on 26 Jun 2010 17:36 At 9:03 PM +0530 6/17/10, Gaurav Kumar wrote: >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 Gaurav: When you encounter the emdash, used — to display it in html. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com
From: Gaurav Kumar on 1 Jul 2010 01:52 Thanks Tedd, but I cant make this change in the application UI level code for this problem. This application is a SAAS and we have certain quality standards which we need to follow.. Any other suggestion? Thanks, -GK On Sun, Jun 27, 2010 at 3:06 AM, tedd <tedd.sperling(a)gmail.com> wrote: > At 9:03 PM +0530 6/17/10, Gaurav Kumar wrote: > >> 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 >> > > Gaurav: > > When you encounter the emdash, used — to display it in html. > > Cheers, > > tedd > > -- > ------- > http://sperling.com http://ancientstones.com http://earthstones.com >
|
Pages: 1 Prev: curl help or other suggestion Next: Replacing Registered Symbol |