Jump to content

Russian showing up as ???? in php from mysql


Looktrne

Recommended Posts

I have some russian text in a mysql database

 

I can see it fine in phpmyadmin

 

but when my php script calls the database for it it shows as ?????

 

for example

 

Добро

 

would show up as

 

??????

 

do I have to set the collation before calling to the database?

 

sorry but I have never used anything except english in the past

 

thanks for any help on this

 

Paul

Link to comment
Share on other sites

I tried this in my querry and get nothing but ????

 

if I log into php my admin I see the russian but I cant seem to pull it into php in anyway to display the russian from the database

 

can someone please provide an example of pulling the content from the database and displaying the russian?

 

I really need an example nothing I tried has worked....

 

thanks for any help on this guys

 

Paul

Link to comment
Share on other sites

Save your page in a different encoding.

 

When you do file->save as:  At the bottom choose: Encoding-> UTF-8  [instead of the default ANSI]

 

However, I do not know if there are any downsides to this.  This is simply what I did when I wished to display Russian chars on a site I helped build.  If there are any downsides, I would like to hear them so I can change as well.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.