File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1158,7 +1158,11 @@ utf8
1158
1158
1159
1159
**type **: ``boolean `` **default **: ``false ``
1160
1160
1161
- When this option is set to ``true ``, route patterns can include UTF-8 characters.
1161
+ When this option is set to ``true ``, the regular expressions used in the
1162
+ :ref: `requirements of route parameters <routing-requirements >` will be run
1163
+ using the `utf-8 modifier `_. This will for example match any UTF-8 character
1164
+ when using ``. ``, instead of matching only a single byte.
1165
+
1162
1166
If the charset of your application is UTF-8 (as defined in the
1163
1167
:ref: `getCharset() method <configuration-kernel-charset >` of your kernel) it's
1164
1168
recommended to set it to ``true ``. This will make non-UTF8 URLs to generate 404
@@ -2902,3 +2906,4 @@ to know their differences.
2902
2906
.. _`haveibeenpwned.com` : https://haveibeenpwned.com/
2903
2907
.. _`session.cache-limiter` : https://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
2904
2908
.. _`Microsoft NTLM authentication protocol` : https://docs.microsoft.com/en-us/windows/desktop/secauthn/microsoft-ntlm
2909
+ .. _`utf-8 modifier` : https://www.php.net/reference.pcre.pattern.modifiers
You can’t perform that action at this time.
0 commit comments