Knoxd

The latest headlines from the best of Knoxville.

Character-encoding issues resolved

  • Published: May 16, 2008
  • Author: Patrick Beeson
  • Category: Bugs
  • Comments: Closed

One bug that has plagued Knox'd since it's launch was that some feeds contained characters that were displayed in their Unicode format. Essentially, characters like "*" were appearing as

*

I fixed this issue by adding a Django template filter to the feed item title. Now they're converted to markdown syntax, which makes sure characters appear correctly, and then stripped of any HTML.

There is a better way to do this on the backend, but this resolves the issue and takes only a few minutes.

Post a comment if you spot any lingering instances of this issue.

Colophon and copyright

Copyright © 2010 Patrick Beeson and Casey Peters. All rights reserved.

This site is published using Django, and hosted by WebFaction.