Opened 18 years ago
Closed 16 years ago
#3759 closed (worksforme)
Community aggregator update_feed.py uses wrong encoding
Reported by: | derelm | Owned by: | nobody |
---|---|---|---|
Component: | *.djangoproject.com | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I actually fell over that problem, when i duplicated the code in djangoproject.com/django_website/apps/aggregator/bin/update_feeds.py on my website. the fetched feed-data is converted back to the encoding it used to be instead of being converted to UTF-8.
i am not really into encodings that much, so i'd love to get a comment of someone with a little more knowledge in that area.
Attachments (1)
Change History (6)
by , 18 years ago
Attachment: | update_feeds.diff added |
---|
comment:1 by , 18 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:3 by , 18 years ago
i tested it for quite some time with all sorts of feeds all over the web, works perfectly fine for me.
btw, also tested with non utf-8 feeds.
comment:4 by , 17 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
it assumes that the output of feedparser is utf8 which is almost always true...
can someone from unicode-branch comment?
comment:5 by , 16 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
The code works for this website, which is all it's intended for.
This doesn't look right to me... it assumes that all feeds are in UTF8, which is wrong.