Django

Code

Ticket #4452 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

Unicode error in the syndication system

Reported by: aribao@gmail.com Assigned to: adrian
Milestone: Component: RSS framework
Version: SVN Keywords: unicode-branch
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

First of all, Idon't know if the component is RSS framework, I don't know if it's the same as "Syndication feeds", I guess so.

I'm serving an atom feed, and I got problems with the following line:

subtitle = u"Melón"

The codification is wrong, but with the next line I get an error:

subtitle = "Melón"

Error:'ascii' codec can't decode byte 0xc3 in position 40: ordinal not in range(128)

Probably it's because the framework doesn't check the codification before trying to convert it to unicode. I don't know, actually I didn't check the code yet. A matter of time.

Attachments

Change History

06/01/07 07:39:17 changed by mtredinnick

  • keywords changed from unicode ascii syndication subtitle decode to unicode-branch.
  • needs_better_patch changed.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • needs_docs changed.

This has been fixed on the UnicodeBranch already.

I'll close this ticket once that branch has been merged into trunk, but in the meantime using (and testing) that branch is encouraged.

07/04/07 07:11:05 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [5609]) Merged Unicode branch into trunk (r4952:5608). This should be fully backwards compatible for all practical purposes.

Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702


Add/Change #4452 (Unicode error in the syndication system)




Change Properties
Action