Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#8300 closed (duplicate)

feedgenerator shouldn't use ascii to decode dates

Reported by: alperkanat Owned by: nobody
Component: contrib.syndication Version: dev
Severity: 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

if i use some locale like tr_TR.UTF-8 or any other locale, a date for the rss feed could be "10 Ağu" instead of "10 Aug".. Therefore, I get the following error messages:

UnicodeDecodeError at /feeds/latest/
'ascii' codec can't decode byte 0xc4 in position 9: ordinal not in range(128)

I think all decoding should be done using utf-8 instead of ascii.. And by the way there's a problem in line 241 of feedgenerator.py file:

handler.addQuickElement(u"pubDate", rfc2822_date(itempubdate).decode('links'))

'links' here should be something like ascii or especially utf-8..

Change History (4)

comment:1 by alperkanat, 16 years ago

sorry the links part is my fault :)

comment:2 by Malcolm Tredinnick, 16 years ago

How is this different from #8219 (which you also filed)?

comment:3 by Malcolm Tredinnick, 16 years ago

Resolution: duplicate
Status: newclosed

Closing as a duplicate. Please reopen with an explanation of the difference if this is different from #8219.

comment:4 by (none), 15 years ago

milestone: post-1.0

Milestone post-1.0 deleted

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