|Perl: the Markov chain saw|
serving a zip file with Dancer2by morgon (Priest)
|on May 14, 2018 at 12:24 UTC||Need Help??|
morgon has asked for the wisdom of the Perl Monks concerning the following question:
I have a (flat) zip-file containing htmls, pngs and jpgs that I want to serve as a website.
I started out with plain psgi, where it was really simple.
Now I want to move to Dancer2 and I seem to have a problem with encodings.
The html-files in the zip are utf-8 and I am using Archive::Zip to read it, so in the psgi-version I did something like
And that worked.
Now I try to do the same thing in Dancer2 like this:
And while it somewhat works (the header seeems to be sent just fine) accented characters look wrong in the browser.
Does anyone have an idea what this could be?
Also I am t a total newbie to Dancer, so I would greatly appreciate any better ways to do this in Dancer as I suppose this is not a very idiomatic way to do this.