On Mar 19, 4:55 pm, elm <ernesto.la...@gmail.com> wrote:
> I have bee trying to deal with an erratic error for the last 3 day. I
> hope you can rescue me!!!
>
> After experiencing erratic errors that appeared from time to time on a
> larger project (i.e. ViewDoesNotExist) I have reduced my project to a
> very simple application that runs on apache with mod_python and
> connects to Oracle via cx_oracle (4.3).
>
> after reloading apache I get the following error:
>
> ----
> TemplateSyntaxError at /test/
>
> Caught an exception while rendering: 'utf8' codec can't decode bytes
> in position 3-4: invalid data. You passed in 'OTO\xd1O' (<type 'str'>)

Indeed, that's the latin1 encoding of 'OTOÑO', not utf8.  Maybe Oracle
is getting somehow getting the client encoding confused.  Try setting
the environment variable NLS_LANG = '.UTF8' for the Apache process.

HTH,
Ian
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to