develooper Front page | perl.i18n | Postings from May 2007

Re: Character Encoding (UTF-8) in PERL

Thread Previous | Thread Next
From:
Damyan Ivanov
Date:
May 13, 2007 20:08
Subject:
Re: Character Encoding (UTF-8) in PERL
Message ID:
20070513200608.7e1feea2@localhost
-=| 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@jabber.minus273.org

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About