Re: 'ascii' codec can't encode character

2022-04-29 Thread David Crandell
y modelForm does nothing, just defines a model at Meta with all fields. > My CreateView is just defined with all default values, not overriding > anything. > When submitting the form, the server returns 500 if 'nome' or 'sobrenome' > fields have accent letters lik

Re: 'ascii' codec can't encode character

2022-04-29 Thread Antonis Christofides
a with all fields. My CreateView is just defined with all default values, not overriding anything. When submitting the form, the server returns 500 if 'nome' or 'sobrenome' fields have accent letters like Á, é, í, ç. etc. The error: 'ascii' codec can't encode

'ascii' codec can't encode character

2022-04-28 Thread Thiago Luiz Parolin
cent letters like Á, é, í, ç. etc. The error: 'ascii' codec can't encode character '\xe9' in position 4: ordinal not in range(128) with character depending on user input. I am using sqlite for db and the pragma encoding returns utf8. I don't know how to deal with it. A

Re: Ayuda con el error: UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position 7: ordinal not in range(128)

2019-05-07 Thread Phako Perez
> Hola amigos, me podrían ayudar aresolver este error: > > UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position > 7: ordinal not in range(128)} > > Esto me paso cuando estaba creando el super usuario en django > > -- > Y

Ayuda con el error: UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position 7: ordinal not in range(128)

2019-05-07 Thread noel moreira
Hola amigos, me podrían ayudar aresolver este error: UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position 7: ordinal not in range(128)} Esto me paso cuando estaba creando el super usuario en django -- You received this message because you are

Re: 'ascii' codec can't encode character u'\xe4' [solved]

2012-06-14 Thread kenneth gonsalves
On Thu, 2012-06-14 at 08:26 -0700, bruno desthuilliers wrote: > > apache + wsgi > > > > > Ok, so that's the same setup we use... Are you/they using the > WSGIDaemonProcess and WSGIProcessGroup directives ? (I bet they do if > it's > shared hosting and they know what's good for them). yes > B

Re: 'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread Xavier Ordoquy
Hi there, I have faced this kind of error a couple of times when the local wasn't correctly set on the system. Within the python interpreter it was C (ie ascii) where it should have been UTF8. Up to now, all have been resolved by correctly setting the locals system wide and within the web serv

Re: 'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread kenneth gonsalves
On Thu, 2012-06-14 at 23:46 +0200, Hendrik Speidel wrote: > as an alternative you can provide your own Storage implementation like > outlined here: > > http://source.mihelac.org/2011/02/6/rename-uploaded-files-ascii-character-set-django/ > > I have told the client to use only ascii for the time

Re: 'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread Hendrik Speidel
ds/files.py" > in pre_save > 249. file.save(file.name <http://file.name>, file, > save=False) > File > > "/home/kenyakids/webapps/django/lib/python2.7/django/db/models/fields/files.py" > in save > 86. self.na

Re: 'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread Paulo Almeida
jango/lib/python2.7/django/db/models/fields/files.py" > > in pre_save > 249. file.save(file.name, file, save=False) > File > "/home/kenyakids/webapps/django/lib/python2.7/django/db/models/fields/files.py" > > in save > 86. self.n

Re: 'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread bruno desthuilliers
On Thursday, June 14, 2012 1:58:28 PM UTC+2, lawgon wrote: > > On Thu, 2012-06-14 at 04:19 -0700, bruno desthuilliers wrote: > > > I have an application which runs on a webfaction hosting. > > > > > > > > How is it deployed exactly ? > > apache + wsgi > Ok, so that's the same setup we us

Re: 'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread kenneth gonsalves
On Thu, 2012-06-14 at 04:19 -0700, bruno desthuilliers wrote: > > I have an application which runs on a webfaction hosting. > > > > How is it deployed exactly ? apache + wsgi > (sorry never used webfaction hosting for django - nor for anything > else > FWIW) not my choice, client choice >

Re: 'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread bruno desthuilliers
On Thursday, June 14, 2012 12:35:40 PM UTC+2, lawgon wrote: > > hi, > > I have an application which runs on a webfaction hosting. How is it deployed exactly ? (sorry never used webfaction hosting for django - nor for anything else FWIW) > I also have > the same app running on my devel m

'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread kenneth gonsalves
e/files/storage.py" in get_available_name 70. while self.exists(name): File "/home/kenyakids/webapps/django/lib/python2.7/django/core/files/storage.py" in exists 230. return os.path.exists(self.path(name)) File "/usr/local/lib/python2.7/genericpat

Re: 'ascii' codec can't encode character u'\xe4'

2012-04-15 Thread kenneth gonsalves
a > model called Sponsor. If I give > > print item.sponsor, I get: > Kumpumäki Raili 21755 > print item.sponsor.lname, I get: > 'ascii' codec can't encode character u'\xe4' in position 6: ordinal not > in range(128) > > I am using postgres, and I hav

'ascii' codec can't encode character u'\xe4'

2012-04-15 Thread kenneth gonsalves
hi, I am doing some work in Finnish using django trunk. The code works fine in the shell. But on the web, I am getting a strange error. I have a model called Sponsor. If I give print item.sponsor, I get: Kumpumäki Raili 21755 print item.sponsor.lname, I get: 'ascii' codec can't e

Re: debug template tag gives me: "'ascii' codec can't encode character"

2009-01-12 Thread Flo Ledermann
> > debug %} template tag to one of my templates (no other changes), I get > > the following error message: > > > TemplateSyntaxError at /art/ > > > Caught an exception while rendering: 'ascii' codec can't encode > > character u'\u2019' in

Re: debug template tag gives me: "'ascii' codec can't encode character"

2009-01-11 Thread Malcolm Tredinnick
or at /art/ > > Caught an exception while rendering: 'ascii' codec can't encode > character u'\u2019' in position 19: ordinal not in range(128) > > I haven't used the debug tag before, and googleing the error message > didn't bring up anything useful

Re: debug template tag gives me: "'ascii' codec can't encode character"

2009-01-11 Thread Flo Ledermann
Oh, I should probably add that I am using # coding=utf-8 on some of my source files, because they contain unicode default values etc. Flo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

debug template tag gives me: "'ascii' codec can't encode character"

2009-01-11 Thread Flo Ledermann
Hi all, I just bumped into a problem I can't resolve: after adding the {% debug %} template tag to one of my templates (no other changes), I get the following error message: TemplateSyntaxError at /art/ Caught an exception while rendering: 'ascii' codec can't encode ch