Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
spanish character issue
Old 07-15-2009, 11:59 AM spanish character issue
Junior Talker

Posts: 1
Trades: 0
Hi,
I have created a small form in which users enter the data in Spanish language, I store the data in DB and when i display it, then many of the characters are shown junk/garbage. I have the page charset encoding to UTF-8 but still the fonts doesn't show properly.

This problem is caused when i used the text boxes for first name, last name etc. as for the text area, i am using the fckeditor and its working fine.

Can you guide me how to fix the issue on the text boxes without using the fckeditor on it.

Regards,
David
quitwork is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-15-2009, 11:42 PM Re: spanish character issue
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
I usually create tables using "DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci" and when I connect, I use "SET CHARACTER SET utf8" and "SET NAMES utf8" and then encode data with mysqli_real_escape_string before sending to the database. That's allowed me to work with things even as non-English as Japanese.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to spanish character issue
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.52275 seconds with 12 queries