[dancer-users] session JSON with é à

Hugues hugues at max4mail.com
Thu May 8 10:39:15 BST 2014


Thanks for this info....

I open a bug on

   https://rt.cpan.org/Ticket/Display.html?id=95461


I return to YAML Session

bye
Hugues.

Le 08/05/2014 10:35, Stefan Hornburg (Racke) a écrit :
> On 05/08/2014 10:21 AM, Hugues wrote:
>> Hello
>> I found a strange problem with my D1 app
>>
>> in my config.yml
>>
>> charset: "UTF-8"
>> template: "template_toolkit"
>> engines:
>> template_toolkit:
>> encoding: 'utf8'
>> start_tag: '[%'
>> end_tag: '%]'
>>
>> serializer: 'JSON'
>> session: 'JSON'
>>
>> all characters with accent appear encoding
>>
>> cat sessions/142370789218895586385667162125359748.json | jq .
>>
>> "MemoAction": "2014-05-08 001 RESET-ARRET/MARCHE ���©���©���© \r\n",
>> "MemoPanne": " 2014-05-08 001 PB BATTERIE ���©���©���©���© \r\n"
>>
>>
>> if I use session: 'YAML' in config.yml all is ok
>>
>> cat sessions/295483594817224343797619192129361122.yml
>>
>> MemoAction: "2014-05-08 001 RESET-ARRET/MARCHE éééé \r\n"
>> MemoPanne: " 2014-05-08 001 PB BATTERIE \r\n2014-05-08 001 PB BATTERIE ééé \r\n"
>>
>> I do something special with json session ?, I tried to encode/decode without success
>> ( all this text come from web user )
>>
> That is most likely a bug with Dancer::Session::JSON.
>
> Sawyer?
>
> BTW: I would recommend to use a faster file based session engine for production.
>
> Regards
> 	Racke
>



More information about the dancer-users mailing list