[dancer-users] character encoding
Stefan Hornburg (Racke)
racke at linuxia.de
Wed Dec 18 16:09:19 GMT 2013
On 12/18/2013 05:04 PM, Attila Bárdi wrote:
> Hey Stefan,
>
> as you see the the ldap gives me the correct result, till the Dancer module
> is not loaded.
> I think it is a Dancer error not an ldap.
>
> I created a more simple test case:
>
> battila at igornb:~$ dancer -a MyWeb::App
> ...
> battila at igornb:~$ cd MyWeb-App
> battila at igornb:~/MyWeb-App$ vi lib/ChrachterMistake.pm
>
> #!/usr/bin/perl -w
> package ChrachterMistake;
> use strict;
> use warnings;
>
> sub gimmySomething {
> return "Bárdi Attila";
> }
>
> 1;
>
> battila at igornb:~/MyWeb-App$ vi lib/MyWeb/App.pm
>
> package MyWeb::App;
> use Dancer ':syntax';
> use ChrachterMistake;
>
> our $VERSION = '0.1';
>
> get '/' => sub {
> return ChrachterMistake::gimmySomething();
> };
>
> true;
>
You have to use
use utf8;
if you put hardcoded UTF-8 strings into your module.
Regards
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
More information about the dancer-users
mailing list