Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-31-2007, 02:52 PM   #1
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 68

Rep: Reputation: 15
Help with phpMyAdmin configuration (charset issues)


I'm using UTF-8 in my MySQL database and all foreign characters display well on my utf-8 web page after queries to MySQL without any form on conversion in my PHP code - such as utf8_encode().

But phpMyAdmin displays everything garbled. I can't enter anything directly from it either, it will simply enter everything in latin-1 in my MySQL.

I configured my phpMyAdmin like so:

$cfg['Lang'] = 'en-utf-8';
$cfg['DefaultCharset'] = 'utf-8';
$cfg['AllowAnywhereRecoding'] = true;
$cfg['AvailableCharsets'] = array('utf-8');
As you can see, I even killed all other available charsets just to be sure utf-8 is the only one I want.

Some other solutions I found on the web included modifications in my.cnf or php.ini but I don't see why this would work, since I do have successful queries out of a simple php + mysql interface I built myself. There must be some other option in phpMyAdmin that I'm missing here.

Any help appreciated.

Old 08-01-2007, 11:20 AM   #2
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 68

Original Poster
Rep: Reputation: 15
I found this nice hack on a French forum. Works for me.


charset, phpmyadmin, utf8

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
wrong permission on configuration file in phpMyAdmin tootcsen Linux - Newbie 3 03-06-2013 07:00 AM
phpMyAdmin, mysql - setup issues cornleader Linux - Software 6 03-09-2007 01:24 AM
Configuration issues JonathanWexler Linux - Kernel 3 01-01-2007 01:54 PM
phpmyadmin login issues basq3 Linux - Software 10 04-21-2005 01:46 AM
Cedega Configuration Issues Danzig Linux - Games 0 07-03-2004 10:06 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration