[dancer-users] character encoding

Attila Bárdi attila.bardi at gmail.com
Wed Dec 18 18:01:07 GMT 2013


Hey Stefan,

you are right! Danke!

I tried the* use urf8;* with ldap and it did not work.

I will check the source of *Dancer::Plugin::LDAP.*

Best regards,
Attila


On Wed, Dec 18, 2013 at 5:09 PM, Stefan Hornburg (Racke)
<racke at linuxia.de>wrote:

> 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
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20131218/19108a74/attachment-0001.html>


More information about the dancer-users mailing list