Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#6454 closed Uncategorized (wontfix)

request.path is a unicode string

Reported by: guettli Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Very small documentation patch: request.path is a unicode string.

Attachments (1)

docs__request_response.diff (518 bytes) - added by guettli 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by guettli

comment:1 Changed 8 years ago by guettli

  • Cc hv@… added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 8 years ago by ubernostrum

  • Resolution set to invalid
  • Status changed from new to closed

All strings, everywhere, that Django hands you as a result of HTTP or database interactions, are Unicode strings.

comment:3 Changed 8 years ago by guettli

  • Resolution invalid deleted
  • Status changed from closed to reopened

Sorry, I think it is useful to say 'unicode string' here:

request.path is part of an URI. It could be possible, that
it is uriencoded, too.

The URL http://.../foo/ä/ could be

/foo/ä/ (unicode)
or /foo/%C3%BC/ in request.path.

comment:4 Changed 8 years ago by ubernostrum

  • Resolution set to wontfix
  • Status changed from reopened to closed

All strings, everywhere, that Django hands you as a result of HTTP or database interactions, are Unicode strings. As such there is no need to specially call attention to one specific string and say that it's a Unicode string; the entire point of consistent use of Unicode is that you never have to ask what type of string you've got -- it's a Unicode string.

comment:5 Changed 4 years ago by guettli

  • Cc hv@… removed
  • Easy pickings unset
  • Severity set to Normal
  • Type set to Uncategorized
  • UI/UX unset
Note: See TracTickets for help on using tickets.
Back to Top