Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

utf-8 for mysql-connection in Jifty

by wanradt (Scribe)
on Nov 18, 2010 at 20:12 UTC ( #872342=perlquestion: print w/replies, xml ) Need Help??
wanradt has asked for the wisdom of the Perl Monks concerning the following question:


Just made legs wet with Jifty and don't understand, how could i tell, that my database connection should use utf-8? For DBI i use "mysql_enable_utf8 => 1" during connecting, but where should i set it in Jifty app?

Nġnda, WK

Replies are listed 'Best First'.
Re: utf-8 for mysql-connection in Jifty
by aquarium (Curate) on Nov 18, 2010 at 23:11 UTC
    since this is an OO'ish interface to the DB, utf8 is achieved a bit differently to the DBI way. have a look for Jifty::DBI::Filter::utf8 module and methods
    the hardest line to type correctly is: stty erase ^H
      Thank you! This one i founded too, but i got no idea how could i use it ;) Besides, those two lines of documentation gave me a impression it is dealing with strings and not with connection itself. Correct me if i am wrong, but i did not get any further here. Thank you!
      Nġnda, WK

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://872342]
Approved by LanX
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2018-05-20 12:19 GMT
Find Nodes?
    Voting Booth?