Solved

Problem with Storing Language Text in Database then displaying in browser.

Posted on 2009-04-15
3
190 Views
Last Modified: 2013-12-12
Hello,

I have one multi-language website in which I'm storing language content/text in Database as filed as TEXT field type.

I'm facing problem with different language char.

Like for french / spanish have some special char on their language , once we store this in DB and then we fetch from DB by php script and it get displayed in browser via php file.

But when we view that page from browser its showing converted those char in another some special char and all mixed up.

i think its related to char set problem

Can any advice how exactly i should store all this value in DB so this problem can avoid.

Many Thanks in Advance !!!
0
Comment
Question by:121doc
3 Comments
 
LVL 5

Accepted Solution

by:
palanee83 earned 250 total points
ID: 24147392
Hi,

You can set UTF-8 char-set for DB.

Explore the below URL to know more about char-set


http://dev.mysql.com/doc/refman/5.0/en/charset.html
0
 
LVL 14

Assisted Solution

by:shobinsun
shobinsun earned 250 total points
ID: 24147405
Hello,

Use 'utf8_general_ci' charset in database.

hope this will help you.

Regards.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now