Solved

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

Posted on 2009-04-15
3
192 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article discusses four methods for overlaying images in a container on a web page
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The viewer will learn how to count occurrences of each item in an array.

820 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