Solved

PHP, MySQL and Russian Text

Posted on 2008-06-26
3
793 Views
Last Modified: 2013-12-12
Hi,
I have a DB where I keep some russian text. And a php script which queries the DB and echo's this russian text on the to the browser.
When I check the table which contains russian text using PHP MyAdmin, I can see the russian text correctly. But when I open the page, all russian characters are appears as ? (Question Mark)

I have this
<?php
header('Content-type: text/html; charset=utf-8') ;
?>
in the begining of the script but it doesn't help.

Can someone help me pleaseee...
0
Comment
Question by:bilgehanyildirim
  • 2
3 Comments
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 300 total points
ID: 21873695
better try to set it on the page itself
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Open in new window

0
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 300 total points
ID: 21873698
also check right click whether the utf-8 encoding is set to the page
0
 
LVL 1

Accepted Solution

by:
webjema earned 200 total points
ID: 21882059
Also check connection to the database.
Use mysql commands (before your first query)
SET NAMES 'utf8'
SET CHARACTER SET utf8
for right encoding.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

740 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