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
749
749
750
750
**type **: ``boolean `` **default **: ``false ``
751
751
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.
754
760
755
761
.. _config-framework-session :
756
762
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ Configuration
17
17
* `Cache Directory `_
18
18
* `Log Directory `_
19
19
20
+ .. _configuration-kernel-charset :
21
+
20
22
Charset
21
23
~~~~~~~
22
24
You can’t perform that action at this time.
0 commit comments