Solved

PHP, MySQL and Russian Text

Posted on 2008-06-26
3
798 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
[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
  • 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

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…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

687 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