Skip to content

Commit e8b0c11

Browse files
committed
Reword
1 parent b629aa1 commit e8b0c11

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

reference/configuration/framework.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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

reference/configuration/kernel.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Configuration
1717
* `Cache Directory`_
1818
* `Log Directory`_
1919

20+
.. _configuration-kernel-charset:
21+
2022
Charset
2123
~~~~~~~
2224

0 commit comments

Comments
 (0)