[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 12-19-2005, 04:25 AM   #1 (permalink)
NamePros Member
 
Join Date: Sep 2005
Posts: 30
57.00 NP$ (Donate)

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, 09:07 AM   #2 (permalink)
mch
NamePros Regular
 
Join Date: Nov 2005
Location: EU
Posts: 248
99.25 NP$ (Donate)

mch is on a distinguished road


On the display page set the encoding to UTF-8.
mch is offline  
Old 12-20-2005, 04:18 AM   #3 (permalink)
Domains my Dominion
 
sdsinc's Avatar
 
Join Date: Aug 2005
Location: Web 1.0
Posts: 6,285
1,095.94 NP$ (Donate)

sdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond repute

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
You can also use htmlentities() with character sets like ISO-8859-1
__________________
Buy now - MassDeveloper.com $500
sdsinc is offline  
Old 12-20-2005, 04:55 AM   #4 (permalink)
NamePros Member
 
Join Date: Sep 2005
Posts: 30
57.00 NP$ (Donate)

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, 05:41 AM   #5 (permalink)
Domains my Dominion
 
sdsinc's Avatar
 
Join Date: Aug 2005
Location: Web 1.0
Posts: 6,285
1,095.94 NP$ (Donate)

sdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond repute

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
setlocale


http://php.net/setlocale
__________________
Buy now - MassDeveloper.com $500
sdsinc is offline  
Old 12-20-2005, 09:04 AM   #6 (permalink)
NamePros Member
 
Join Date: Sep 2005
Posts: 30
57.00 NP$ (Donate)

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 05:24 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85