Any help would be appreciated here, thanks!.

On Oct 27, 12:52 pm, SamDonaldson <[EMAIL PROTECTED]> wrote:
> I've read the posts on the ascii issue and I did the following in my
> pylons app.  I added a file called sitecustomization.py and in it, I
> added the following lines:
>
> import sys
> reload(sys)
> sys.setdefaultencoding('utf-8')
> del sys.setdefaultencoding
>
> I added this file in the pylons application root directory.  It still
> doesn't work.  When I getdefaultencoding() in one of my actions, I
> still get back 'ascii' versus 'utf-8'.  Note that I don't have a
> PYTHONPATH variable setup.  But even after setting it, it still
> doesn't work.
>
> Also, when I manually add the above lines to a function to get rid of
> the ascii error, formencode doesn't allow the characters to come
> through and gives me a user error which is better than the internal
> server error.  It must be interpreting the unicode characters
> differently?  How do I get formencode to not give me an error on for
> example, spanish text etc..  How is formencode interpreting these
> characters?
>
> Thanks, any help would be very appreciated:
>
> Sam


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to