Problem with greek char in PHP and MySQL on Ubuntu Server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zenon
Forum Commoner
Posts: 42
Joined: Fri Jan 23, 2009 1:41 pm

Problem with greek char in PHP and MySQL on Ubuntu Server

Post by zenon »

Hello.

I created a database with MySQL and PHP on Windows XP.
My database store greek characters. I used utf8 as a charset.
Now, i moved my database and PHP script on Ubuntu Server and i can't see the data stored in my database though PHP.
In my database, i can see some incomprehensible characters.

Do you have any ideas how to correct it?
I found on the internet that a solution is to use utf8_general_ci as charset.

As i don't have Ubuntu server at my home, just at work, i want to correct it but i can't test it at home.

Any help would be very welcome!

Thank you!


Best regards,
Zinonas
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Problem with greek char in PHP and MySQL on Ubuntu Server

Post by Benjamin »

:arrow: Moved to PHP - Code
Post Reply