LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 07-31-2007, 03:52 PM   #1
narc
Member
 
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 62
Thanked: 0
Help with phpMyAdmin configuration (charset issues)


[Log in to get rid of this advertisement]
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.
narc is offline  
Tag This Post , ,
Reply With Quote
Old 08-01-2007, 12:20 PM   #2
narc
Member
 
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 62
Thanked: 0

Original Poster
I found this nice hack on a French forum. Works for me.

http://www.developpez.net/forums/sho...5&postcount=15
narc is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
phpMyAdmin, mysql - setup issues cornleader Linux - Software 6 03-09-2007 02:24 AM
Configuration issues JonathanWexler Linux - Kernel 3 01-01-2007 02:54 PM
wrong permission on configuration file in phpMyAdmin tootcsen Linux - Newbie 2 06-18-2006 11:16 PM
phpmyadmin login issues basq3 Linux - Software 10 04-21-2005 02:46 AM
Cedega Configuration Issues Danzig Linux - Games 0 07-03-2004 11:06 PM


All times are GMT -5. The time now is 03:18 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration