Re: Proposal: A better way to handle unicode in messages, etc

2010-10-20 Thread Michael
request.GET should convert %codes into their appropriate characters, the problem is likely that messages.info is expecting an ascii string, not unicode. messages.info(request, unicode(request.GET.get('symbol'), errors='replace')) Will replace the degree symbol with a ?, if I remember correctly.

Re: Proposal: A better way to handle unicode in messages, etc

2010-10-20 Thread Luke Plant
On Wed, 2010-10-20 at 09:50 -0700, Yo-Yo Ma wrote: > I was trying some things out, and I noticed that it isn't actually > possible (without using a char-code and converting it) to put > something like ° (degree symbol) into a "message". > > Example: > > this code: > messages.info(request, request