Opened 10 years ago

Closed 10 years ago

#422 closed enhancement (duplicate)

define a default charset for web pages

Reported by: anonymous Owned by: adrian
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: UI/UX:

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 Changed 10 years ago by anonymous

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

duplicate to #333

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