NameSilo

Special Characters Problem in Form

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
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
Close
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
Close
You can also use htmlentities() with character sets like ISO-8859-1
 
0
Close
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
Close
0
Close
date in french

Thanks SDCinc....
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back