LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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


Hello.

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:

Code:
$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.

Thanks.
 
Old 08-01-2007, 11:20 AM   #2
narc
Member
 
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.

http://www.developpez.net/forums/sho...5&postcount=15
 
  


Reply

Tags
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


All times are GMT -5. The time now is 11:44 AM.

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