Re: Character Encoding for em-dash

From: Date: Thu, 01 Jul 2010 05:52:08 +0000
Subject: Re: Character Encoding for em-dash
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-306591@lists.php.net to get a copy of this message
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@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 &mdash; to display it in html. > > Cheers, > > tedd > > -- > ------- > http://sperling.com > http://ancientstones.com > http://earthstones.com >

« previous php.general (#306591) next »