Solved

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

Posted on 2009-04-15
3
194 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

626 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