perl-i18n

Re: Character Encoding (UTF-8) in PERL

2007-05-13 20:08:58
-=| Oliver König, Sun, 13 May 2007 17:52:54 +0200 |=-
On Sunday 13 May 2007 17:14:43 you wrote:
Krzysztof Krzy??aniak dijo [Thu, May 10, 2007 at 09:48:46AM +0200]:

or (from man DBD::mysql):

mysql_enable_utf8

This attribute determines whether DBD::mysql should assume strings
stored in the database are utf8.  This feature defaults to off.

When set, a data retrieved from a textual column type (char,
varchar, etc) will have the UTF-8 flag turned on if necessary.

However the command dbh->do(SHOW VARIABLES LIKE "character_set_%");
excuted in a PERL script returns:
character_set_client      latin1
character_set_connection  latin1
character_set_database    utf8
character_set_filesystem  binary
character_set_results     latin1
character_set_server      utf8
character_set_system      utf8
character_sets_dir        /usr/share/mysql/charsets/

Everybody is blaming mysql but it is obvious to me that PERL is the
problem. How do I configure PERL tu use UTF-8 as default???

Perhaps changing the above default in DBD::Mysql would do the
trick?

-- 
dam            JabberID: dam(_at_)jabber(_dot_)minus273(_dot_)org

Attachment: signature.asc
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>