Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#8300 closed (duplicate)

feedgenerator shouldn't use ascii to decode dates

Reported by: alperkanat Owned by: nobody
Component: contrib.syndication Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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

sorry the links part is my fault :)

comment:2 Changed 10 years ago by Malcolm Tredinnick

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

comment:3 Changed 10 years ago by Malcolm Tredinnick

Resolution: duplicate
Status: newclosed

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

comment:4 Changed 9 years ago by (none)

milestone: post-1.0

Milestone post-1.0 deleted

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