Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Need tipps for identifying utf-8 problems with Dancer and MySQL

by Anonymous Monk
on May 05, 2014 at 11:50 UTC ( #1085048=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Need tipps for identifying utf-8 problems with Dancer and MySQL
in thread Need tipps for identifying utf-8 problems with Dancer and MySQL

The fun thing about Dancer is: You do not need to take care. At least that's my impression.

Sounds like wishful thinking


Comment on Re^3: Need tipps for identifying utf-8 problems with Dancer and MySQL
Re^4: Need tipps for identifying utf-8 problems with Dancer and MySQL
by CountZero (Bishop) on May 05, 2014 at 15:14 UTC
    Nope, it is Perl's "Do What I Mean" magic.

    But seriously, in the docs of Dancer::Plugin::Database I read:

    AUTOMATIC UTF-8 SUPPORT
    As of version 1.20, if your application is configured to use UTF-8 (you've defined the charset setting in your app config as UTF-8) then support for UTF-8 for the database connection will be enabled, if we know how to do so for the database driver in use. If you do not want this behaviour, set auto_utf8 to a false value when providing the connection details.
    So indeed don't do anything other than enabling UTF-8 in your configuration and don't mess around with setting UTF-8 yourself.

    DWIMMERY at its best.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics

      Nope, it is Perl's "Do What I Mean" magic. ...

      And how do you know the OP is using this plugin (that isn't in Dancer core )?

      Ascribing magic to Dancer ... wishful thinking :)

        Bah, you don't show the right Perl spirit. :)

        CountZero

        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        My blog: Imperial Deltronics

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2014-09-19 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (137 votes), past polls