Seems .decode('cp1252') fixed everything.
http://ef
fbot.org/zone/unicode-gremlins.htm
Explains some if it.
On Feb 23, 10:36 pm, Michael Newman <newmani... gmail.com> wrote:
> I have a strange error that I was hoping someone could
help with. I
> have a large project that I have incorporated a search
functionality
> using swish-e. Everything works great until I go to
render it to a
> template. On some debugging I get a variable that says
it has a
> length, but no word count and it won't print to the
template. If I put
> the variable directly through httpresponse it displays
fine. I figure
> that it is some sort of unicode conversion error as
Swish-e doesn't
> seem to output unicode. If I use python's unicode or
django's
> force_unicode before the render_to_response, nothing
displays and no
> HTML renders. I am confused and would really be
interested at any
> ideas anyone might have. I am totally rasping at straws
right now.
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|