Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

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


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

What encoding do you save the source code in? Do you use utf8 to tell Perl your source code uses UTF-8?

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

Replies are listed 'Best First'.
Re^3: How do you use Template Toolkit with Dancer2?
by PiotrS (Novice) on Apr 21, 2022 at 22:01 UTC
    Thanks for your response. Yes I do. I think it might be something to do with interpolation.
      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]
        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://11143181]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found