Dynadot — .com Transfer

Special Characters Problem in Form

Spaceship Spaceship
Watch

shahid_146

Established Member
Impact
2
PHP-MySQL
I've got an order form where people can input name, address etc. One of the customers have tried to put special characters :

State Field : Baden-Württemberg

But when I display the order details, it show it liek this :

Baden-Württemberg

Is there any function in PHP to avoid this problem ?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
On the display page set the encoding to UTF-8.
 
0
•••
You can also use htmlentities() with character sets like ISO-8859-1
 
0
•••
Special Characters

I tried mch's method by setting the encoding to utf-8 and it worked fine. Thanks very much.....

One more question though I need to display Dates in French. Wonder if u've any idea of that as well ?
 
0
•••
0
•••
date in french

Thanks SDCinc....
 
0
•••
Appraise.net

We're social

Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back