#30481: Document that force_str() allows lone surrogates.
--------------------------------------+------------------------------------
Reporter: Adam Hooper | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: 2.2
Severity: Normal | Resolution: wontfix
Keywords: force_text unicode | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by Baptiste Mispelon):
Replying to [comment:10 Adam Hooper]:
> As the original reporter, I agree: calling it `force_str()` makes clear
what it does.
>
> I still perceive Django to lack functionality. I originally filed this
bug report because I assumed the Django framework supported JSON-encoded
requests. This which led me to assume `force_text()` was a solution.
>
> But Django docs don't mention JSON-encoded requests. So I think it's
consistent to close this bug and declare, "Django doesn't support JSON-
encoded requests, unless you invest serious effort."
Personally I'm not familiar with JSON-encoded requests or what would be
required for Django to support them but if that's a feature you're
interested in, you could try starting a discussion on the
DevelopersMailingList.
--
Ticket URL: <https://code.djangoproject.com/ticket/30481#comment:11>
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/068.60ee404cc904ae335b890817f9d11996%40djangoproject.com.