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.