Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Changing the default Charset fails #379

Closed
augensalat opened this Issue · 1 comment

2 participants

@augensalat

... at least for query parameters:

With

$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

http://127.0.0.1:3000/?p1=h%C3%A4h&p2=h%E4h

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
@augensalat

http://pastebin.com/ZLSEvMUm

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.