Jump to content

dash gets replaces by — when submitting to mysql db


jesushax

Recommended Posts

hi all i have a form, with just a basic text area that when the form is submitted it goes to a mysql database

 

in the form if a user types - (dash) in the mysql db it comes out as —

 

how can i sort this out? i dont mind it being a — but for viewing (meaning echoing the data onto a webpage) how can i turn the — back to a -(dash)

 

thanks

The dash isn't actually a normal dash, you'll find it's a nasty MSWord elongated dash... yuck!

One is hoping you're storing all your database in your database as UTF-8, and you will also need to make sure your page encoding on output is UTF-8 also.

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.