From ecc3a1e175cd7b426552fca0281fbf9b540066c6 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sun, 24 Mar 2024 10:38:41 +0900 Subject: [PATCH] docs: add sub section "Adding Permitted Characters" --- user_guide_src/source/general/urls.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/general/urls.rst b/user_guide_src/source/general/urls.rst index afbc131698..8c869cd081 100644 --- a/user_guide_src/source/general/urls.rst +++ b/user_guide_src/source/general/urls.rst @@ -84,13 +84,22 @@ data can be passed to your application. URIs may only contain the following: - Dash: ``-`` - Space: `` `` -This setting can be changed by ``Config\App::$permittedURIChars``. - .. note:: This check is performed by the ``Router``. The Router takes the URL-encoded value held by the ``SiteURI`` class, decodes it, and then checks that it does not contain not permitted strings. +Adding Permitted Characters +--------------------------- + +The permitted characters can be changed by ``Config\App::$permittedURIChars``. + +If you want to use Unicode for URI paths, modify it to allow the characters to +be used. For example, if you want to use Bengali, you will need to set the +following value in **app/Config/App.php**:: + + public string $permittedURIChars = 'a-z 0-9~%.:_\-\x{0980}-\x{09ff}'; + .. _urls-remove-index-php: Removing the index.php file