#35280: iriencode example incorrect
-----------------------------------------+------------------------
               Reporter:  minusf         |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Documentation  |        Version:  5.0
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  1
                  UI/UX:  0              |
-----------------------------------------+------------------------
 https://docs.djangoproject.com/en/5.0/ref/templates/builtins/#iriencode

   If value is "?test=1&me=2", the output will be "?test=1&me=2".

 This is not the case as by default "&" is a safe character for iriencode:
 https://github.com/django/django/blob/main/django/utils/encoding.py#L135.

 It is urlencode that does that conversion. iriencode is more for non-ascii
 characters in my understanding, and using both at the same time is
 supported:
 {{{
 value|urlencode|iriencode
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35280>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e18cf8729-8e50d4e9-6f58-4ac1-9daf-d270ba485d42-000000%40eu-central-1.amazonses.com.

Reply via email to