[Dancer-users] Problem with non ascii characters in yaml files

ambs ambs+dancer at perl-hackers.net
Thu Jan 13 19:35:27 CET 2011

On 13/01/2011 18:27, Eric GUIRBAL wrote:
> Hello,
> I am discovering Dancer. I take this opportunity to thanks the
> developpers for their works. Coding with dancer is very funny.
> My first project is a little site. To generate page of the site, I need
> some strings stored in a site.yml file. The pages are displayed
> correctly except the non-ascii characters from the strings in the
> site.yml file.
> All the files of my project are in utf8. In the config.yml, I have
> charset: "UTF-8"
> engines:
> template_toolkit:
> encoding: 'utf8'

YAML::Syck module has problems with UTF-8
What YAML module is used by Dancer?
> The site.yml is correctly parse. A dump in my terminal proves it.
> A workaround is to use ISO-8819-1 encoding for my site.yml file.
> Thanks for any idea.

More information about the Dancer-users mailing list