Jump to content

MySQL/PHP interaction with special characters


millercj

Recommended Posts

I'm working on a project and in it there are fields in a database that contain values that have special characters (mainly apostrophes) such as S'mores.

 

I have the apostrophes saved in the database as HTML characters (apostrphe is ’ so S'mores is S’mores) The data is pulled into an html page, then on a user action sent to js as a parameter, then to php (ajax) and then saved to another database.

 

When the value gets to the new database S’mores has become S%u2019mores

 

If i then call those fields into an HTML page they display as S%u2019mores and not S'mores. How to I normalize special characters to avoid this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.