Opened 19 years ago

Closed 19 years ago

#422 closed enhancement (duplicate)

define a default charset for web pages

Reported by: anonymous Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: trivial Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

On django/utils/httpwrappers.py the DEFAULT_MIME_TYPE is just "text/html". That means the web browsers sometimes show "weird things" when one uses non-ascii characters on the templates (example: customize base_site.html adding some utf-8 characters and open the http://.../admin/ login page). It would be better to define a default charset, changing that to DEFAULT_MIME_TYPE = 'text/html; charset=utf-8' (the same mimetype used on the admin interface).

Change History (1)

comment:1 by anonymous, 19 years ago

Resolution: duplicate
Status: newclosed

duplicate to #333

Note: See TracTickets for help on using tickets.
Back to Top