Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] unable to create local copy utf8 encoded Japanese MySQLdata [SOLVED]
- Date: Wed, 15 Feb 2006 20:11:40 +0900
- From: Dave Gutteridge <dave@example.com>
- Subject: Re: [tlug] unable to create local copy utf8 encoded Japanese MySQLdata [SOLVED]
- References: <43F1519E.4010403@example.com> <d8fcc0800602132115h1f17a2c0g@example.com> <43F16C83.5030502@example.com><43F2097C.3060504@example.com><877j7xflso.fsf@example.com>
- User-agent: Mozilla Thunderbird 1.0.7 (X11/20051013)
Stephen, >Anyway, I'll go out on a limb and say I think you're wrong. It *is* >probably an issue of converting the character entities and other >mojibake back into Unicode. > Fortunately, I got a nice simple solution from someone on the Ubuntu list. I must say though, that advice I got here led me to ask the right questions on the MySQL list, which in turn led me to ask the right questions on the Ubuntu list. It's great to have so many helpful communities on hand for assistance. And as a bonus the solution was nice and easy to implement. The problem was one of MySQL system variables, as described here: http://dev.mysql.com/doc/refman/4.1/en/charset-server.html And the solution was to edit /etc/mysql/my.cnf, locate the section that starts [mysqld], and add these lines under it: # utf8 init-connect='SET NAMES utf8' character-set-server=utf8 collation-server=utf8_general_ci I restarted MySQL after that, and low and behold, all the Japanese displays correctly, regardless of whether or not it was HTML entities or readable Japanese characters. Thanks to everyone for their helpful advice, which has helped me a lot in understanding encoding better. -- Dave M G
- References:
- [tlug] unable to create local copy utf8 encoded Japanese MySQL data
- From: Dave Gutteridge
- Re: [tlug] unable to create local copy utf8 encoded Japanese MySQLdata
- From: Josh Glover
- Re: [tlug] unable to create local copy utf8 encoded Japanese MySQLdata
- From: Edward Middleton
- Re: [tlug] unable to create local copy utf8 encoded Japanese MySQLdata
- From: Dave Gutteridge
- Re: [tlug] unable to create local copy utf8 encoded Japanese MySQLdata
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Japanese dictionaries
- Next by Date: Re: [tlug] Japanese dictionaries
- Previous by thread: Re: [tlug] unable to create local copy utf8 encoded Japanese MySQLdata
- Next by thread: Re: [tlug] unable to create local copy utf8 encoded JapaneseMySQLdata
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links