From: John Napiorkowski Date: Wed, 25 Mar 2015 18:40:27 +0000 (-0500) Subject: updated UTF8 doc to note the new introduced hacks X-Git-Tag: 5.90085~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=f9d5afbcf71ea8161b7145df4047cd95b8f63be0 updated UTF8 doc to note the new introduced hacks --- diff --git a/lib/Catalyst/UTF8.pod b/lib/Catalyst/UTF8.pod index 91aeaed..ec398df 100644 --- a/lib/Catalyst/UTF8.pod +++ b/lib/Catalyst/UTF8.pod @@ -196,6 +196,26 @@ to send over the wire via HTTP needs to be bytes (not unicode characters). Remember if you use any utf8 literals in your source code, you should use the C pragma. +B Assuming UTF-8 in your query parameters and keywords may be an issue if you have +legacy code where you created URL in templates manually and used an encoding other than UTF-8. +In these cases you may find versions of Catalyst after 5.90080+ will incorrectly decode. For +backwards compatibility we offer three configurations settings, here described in order of +precedence: + +C + +If true, then do not try to character decode any wide characters in your +request URL query or keywords. + +C + +This setting allows one to specify a fixed value for how to decode your query, instead of using +the default, UTF-8. + +C + +If this is true we decode using whatever you set C to. + =head2 UTF8 in Form POST In general most modern browsers will follow the specification, which says that POSTed