PerlDancer/Dancer2 — pull request #782 by mvuets (2014-11-27 16:18:03+00:00)
Title: Enable UTF-8 in the source code of the skeleton app

Since the skeleton app generated by `dancer2 gen` is by default configured to
use UTF-8 (in config.yml), it makes sense to enable UTF-8 in the source code of
the main module (lib/${APP_NAME}.pm) as well. Thus Unicode string literals are
not double encoded and are rendered properly.

Consider this route:

get '/' => sub { "щука\n" }; # stored in a file with UTF-8 encoding

Before change it would give:

$ curl localhost:3000
ÑÑÐºÐ°

After change:

$ curl localhost:3000
щука

♥