•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,975 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,631 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 321 | Replies: 1
![]() |
•
•
Join Date: May 2008
Posts: 10
Reputation:
Rep Power: 1
Solved Threads: 0
Hi I'm using the 2 pieces of code typed below to set the character set to utf8 (so that I can output russian characters on page, and then to output it on web pages. I have tried to set the character set to utf8 so that russian characters appear properly but I still see russian characters as ?????.
First piece of code that i have used to set the character set to utf8 so that russian language characters appear properly on page.
and this is how I have used the function above in my coding.
Is there something wrong in this code..??
If you know any other way to retrieve russian character from database please share your trick,that would be helpful,Thanks
First piece of code that i have used to set the character set to utf8 so that russian language characters appear properly on page.
if (function_exists('mysql_set_charset') === false) {
function mysql_set_charset('utf8', $link = null)
{
if ($link == null) {
return mysql_query('SET CHARACTER SET utf8');
} else {
return mysql_query('SET CHARACTER SET utf8', $link);
}
}
}and this is how I have used the function above in my coding.
$lang_cat_title_table=mysql_set_charset('utf8')
Is there something wrong in this code..??
If you know any other way to retrieve russian character from database please share your trick,that would be helpful,Thanks
Last edited by flashyflashy : Jul 5th, 2008 at 3:20 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
age amd avatar backup blue gene business chips conceptualization daniweb database development dos economy energy enterprise ergonomic europe hardware hp ibm ibm. news intel ibm interface intuitive it language linux medicine memory microsoft news open source openoffice pc php ps3 recession red hat second security server sun supercomputer supercomputing technology trends ubuntu web working x86
- Previous Thread: UTF-8 causing problems with IE6 over SSL
- Next Thread: How to make a php function contain mysql commands?


Linear Mode