Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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:

Hi!

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

Comment on utf-8 for mysql-connection in Jifty
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://872342]
Approved by LanX
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2015-07-30 11:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls