Opened 8 years ago

Closed 8 years ago

#4340 closed (fixed)

[unicode] Missing mapping in postgresql encodings

Reported by: tim@… Owned by: mtredinnick
Component: Database layer (models, ORM) Version: other branch
Severity: Keywords: unicode postgresql
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The mapping between postgresql and python encoding in unicode branch is missing some entries to be able to work with older version of postgresql : source:django/branches/unicode/django/db/backends/postgresql/encodings.py

Postgresql only return 'UTF8' value for client_encoding since version 8.1, older version return 'UNICODE'.

For reference, see:

Change History (4)

comment:1 Changed 8 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Owner changed from adrian to mtredinnick
  • Patch needs improvement unset
  • Summary changed from Missing mapping in postgresql encodings to [unicode] Missing mapping in postgresql encodings
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 8 years ago by mtredinnick

You say the mapping is missing "some entries", but only point out the UNICODE entry. Which other ones are missing?

comment:3 Changed 8 years ago by tim@…

Sorry, I was too lazy to make a diff between old postgresql version and new ones ...

It seems that those entries are missing (based on difference between 7.4 and 8.2 table) :

  • UNICODE (utf-8)
  • WIN (Windows CP1251)
  • ALT (Windows CP866)
  • TCVN (TCVN-5712/Windows CP1258 (Vietnamese))

comment:4 Changed 8 years ago by mtredinnick

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

(In [5286]) unicode: Fixed #4340 -- added a few character set encodings that PostgreSQL 7.x
can return. Pointed out by tim@….

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