Skip to content

Commit 3db78ae

Browse files
Reword
1 parent 7df63be commit 3db78ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doctrine.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ The database connection information is stored as an environment variable called
4343
4444
.. caution::
4545

46-
If you have special charactes in your password, it's possible that you will
47-
have to percent encode them. The driver manager uses PHP's ``parse_url()``
48-
that implements _`RFC 3986`: http://www.faqs.org/rfcs/rfc3986.html.
49-
The RFC lists characters that have to be encoded.
46+
If the username, password or database name contain any character considered
47+
special in a URI (such as ``!``, ``@``, ``$``, ``#``), you must encode them.
48+
See `RFC 3986`_ for the full list of reserved characters or use the
49+
:phpfunction:`urlencode` function to encode them.
5050

5151
Now that your connection parameters are setup, Doctrine can create the ``db_name``
5252
database for you:
@@ -745,6 +745,7 @@ Learn more
745745
* `DoctrineFixturesBundle`_
746746

747747
.. _`Doctrine`: http://www.doctrine-project.org/
748+
.. _`RFC 3986`: https://www.ietf.org/rfc/rfc3986.txt
748749
.. _`MongoDB`: https://www.mongodb.org/
749750
.. _`Doctrine's Mapping Types documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html
750751
.. _`Query Builder`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/query-builder.html

0 commit comments

Comments
 (0)