summaryrefslogtreecommitdiff
path: root/docs/ref/unicode.txt
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2023-02-09 16:48:46 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-10 19:19:13 +0100
commit534ac4829764f317cf2fbc4a18354fcc998c1425 (patch)
treec85c1df220ea6c3a87f9820106ba5a06e9ec9394 /docs/ref/unicode.txt
parent7bb741d787ba360a9f0d490db92e22e0d28204ed (diff)
Refs #34140 -- Applied rst code-block to non-Python examples.
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for reviews.
Diffstat (limited to 'docs/ref/unicode.txt')
-rw-r--r--docs/ref/unicode.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/ref/unicode.txt b/docs/ref/unicode.txt
index 87e8b7d0b7..b73814c861 100644
--- a/docs/ref/unicode.txt
+++ b/docs/ref/unicode.txt
@@ -174,7 +174,9 @@ further encoded when passed to ``iri_to_uri()``. This means you can pass a
full URL to this function and it will not mess up the query string or anything
like that.
-An example might clarify things here::
+An example might clarify things here:
+
+.. code-block:: pycon
>>> from urllib.parse import quote
>>> from django.utils.encoding import iri_to_uri
@@ -193,7 +195,9 @@ result.
Similarly, Django provides :func:`django.utils.encoding.uri_to_iri()` which
implements the conversion from URI to IRI as per :rfc:`3987#section-3.2`.
-An example to demonstrate::
+An example to demonstrate:
+
+.. code-block:: pycon
>>> from django.utils.encoding import uri_to_iri
>>> uri_to_iri('/%E2%99%A5%E2%99%A5/?utf8=%E2%9C%93')
@@ -309,7 +313,9 @@ and application server for the appropriate syntax and location to set this
variable. See the :doc:`/howto/deployment/wsgi/modwsgi` for examples.
In your development environment, you might need to add a setting to your
-``~.bashrc`` analogous to:::
+``~.bashrc`` analogous to:
+
+.. code-block:: shell
export LANG="en_US.UTF-8"