NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Special Characters Problem in Form

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 12-19-2005, 05:25 AM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Sep 2005
Posts: 30
shahid_146 is an unknown quantity at this point
 



Special Characters Problem in Form


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 ?
__________________
Shahid
Binarytrends
shahid_146 is offline  
Old 12-19-2005, 10:07 AM   #2 (permalink)
mch
NamePros Regular
Join Date: Nov 2005
Location: EU
Posts: 248
mch is on a distinguished road
 



On the display page set the encoding to UTF-8.
mch is offline  
Old 12-20-2005, 05:18 AM   #3 (permalink)
Domains my Dominion
 
sdsinc's Avatar
Join Date: Aug 2005
Location: Web 1.0
Posts: 9,552
sdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatness
 


Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer Animal Rescue Wildlife
You can also use htmlentities() with character sets like ISO-8859-1
__________________
NameNewsletter.com - free lists of available domain names
ZoneFiles.net (beta) - ccTLD and gTLD droplists
sdsinc is offline  
Old 12-20-2005, 05:55 AM THREAD STARTER               #4 (permalink)
NamePros Member
Join Date: Sep 2005
Posts: 30
shahid_146 is an unknown quantity at this point
 



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 ?
__________________
Shahid
Binarytrends
shahid_146 is offline  
Old 12-20-2005, 06:41 AM   #5 (permalink)
Domains my Dominion
 
sdsinc's Avatar
Join Date: Aug 2005
Location: Web 1.0
Posts: 9,552
sdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatness
 


Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer Animal Rescue Wildlife
setlocale


http://php.net/setlocale
__________________
NameNewsletter.com - free lists of available domain names
ZoneFiles.net (beta) - ccTLD and gTLD droplists
sdsinc is offline  
Old 12-20-2005, 10:04 AM THREAD STARTER               #6 (permalink)
NamePros Member
Join Date: Sep 2005
Posts: 30
shahid_146 is an unknown quantity at this point
 



date in french


Thanks SDCinc....
__________________
Shahid
Binarytrends
shahid_146 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
$12/year hosting! Sale Ends Today! Senad Web Hosting Offers 0 10-09-2005 09:44 AM
Legal Forms for the Hosting Industry, (including Pre-release Sale Special) zerdomains Web Development Wanted 0 05-22-2005 06:59 PM
PHP Form Script Alpha Programming 12 07-20-2003 04:54 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:22 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger