Skip to content

Changing the default Charset fails #379

augensalat opened this Issue Sep 9, 2012 · 1 comment

2 participants


... at least for query parameters:


$app->plugin(Charset => {charset => 'ISO-8859-1'})

in the sub startup {}

Mojo::Parameters still tries to decode from UTF-8.
Worse (?) - if decoding fails, Mojo::Parameters silently ignores the
problem, and continues with the undecoded value:
So for "häh" in UTF-8 and ISO-8859-1

The result is a string with length == 3 for both.
OTOH the generated output actually switches to ISO-8859-1.

@kraih kraih closed this in 861136c Sep 10, 2012

is my test code. It produces the same result on all latest versions of FF, Chrome, Opera and lynx (all Linux).

I can confirm, that the latest Mojolicious (3.39) fixes the problem.

Please let me know, in case you need more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.