File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -749,8 +749,14 @@ utf8
749749
750750**type **: ``boolean `` **default **: ``false ``
751751
752- Sets the default UTF-8 encoding configuration for routes. If your app's charset
753- is UTF-8 it is recommended to set the value of this option to ``true ``.
752+ .. versionadded :: 4.2
753+ The ``framework.router.utf8 `` option was introduced in Symfony 4.2.
754+
755+ When this option is set to ``true ``, route patterns can include UTF-8 characters.
756+ If the charset of your application is UTF-8 (as defined in the
757+ :ref: `getCharset() method <configuration-kernel-charset >` of your kernel) it's
758+ recommended to set it to ``true ``. This will make non-UTF8 URLs to generate 404
759+ errors.
754760
755761.. _config-framework-session :
756762
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ Configuration
1717* `Cache Directory `_
1818* `Log Directory `_
1919
20+ .. _configuration-kernel-charset :
21+
2022Charset
2123~~~~~~~
2224
You can’t perform that action at this time.
0 commit comments