#23265: Django don't start on French Windows with Python 2.7 (but only in
February,
August and December!)
-------------------------------------+-------------------------------------
Reporter: SpaceFox | Owner: nobody
Type: Uncategorized | Status: new
Component: Core (Management | Version: 1.6
commands) | Resolution:
Severity: Normal | Triage Stage:
Keywords: | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by aaugustin):
This problem was introduced in [cb1614f7b30f336db2a807b43696e20fdab7b78c]
to implement feature request #18611. It affects Django 1.5+.
A first attempt at fixing it was made in #21358 for Django 1.6+ but it was
incomplete.
Apparently we should use CP1252 for decoding in that case:
{{{
>>> print 'ao\xfbt'.decode('cp1252')
août
}}}
Which raises the more general question of what encoding to use. The best
answer I found was on StackOverflow:
http://stackoverflow.com/questions/19412915/how-determine-encoding-of-
datetime-strftime-in-python
Can you provide the output of `locale.getlocale(locale.LC_TIME)` and of
`locale.getpreferredencoding()` on your system?
--
Ticket URL: <https://code.djangoproject.com/ticket/23265#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.991b77e2f0f1995f78f28dd34a7cc86c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.