special character issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vimala
Forum Newbie
Posts: 1
Joined: Tue Jul 15, 2008 8:51 am

special character issue

Post by vimala »

I copied the content (‘Single Quote’ “Double Quote” !@#$%^&*()_+|][{}) from the word and paste it in flash and flash will return the xml together with this content. But the returning xml of the flash with this content is

<MessageText>
‘Single Quote’ “Double Quote” !@#$%^&*()_+|][{} </MessageText>

instead of
<MessageText>
‘Single Quote’ “Double Quote” !@#$%^&*()_+|][{}
</MessageText>

How to rectify this issue? Whether i want to change the php.ini file.

Pls help....
Reviresco
Forum Contributor
Posts: 172
Joined: Tue Feb 19, 2008 4:18 pm
Location: Milwaukee

Re: special character issue

Post by Reviresco »

Quotes and double quotes in Word are curly quotes: ‘ ’ and “ ” insted of straight quotes: ' ' and " ". These are generally not displayed right on the Web.

You need to get rid of the curly quotes. Common way is to first paste the text into a plain text editor, then do a search and replace for the quotes, and then use that.
Post Reply