Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: How do you use Template Toolkit with Dancer2?

by choroba (Cardinal)
on Apr 21, 2022 at 22:08 UTC ( [id://11143184]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How do you use Template Toolkit with Dancer2?
in thread How do you use Template Toolkit with Dancer2?

I tried it, it displays correctly in my browser. Are you sure your source code is saved in UTF-8?

Also, in config.yml, yo need to specify

charset: "UTF-8"

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^5: How do you use Template Toolkit with Dancer2?
by PiotrS (Novice) on Apr 22, 2022 at 12:41 UTC
    Thank you. Found the problem. One of my supporting files was missing a 'use utf8;'. It was staring me in the face, yet I missed it. Thank you all for your help.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found