Thank you very much, it works like a charm:)
> def __unicode__(self):
>
> instead of
>
> def __str__(self):
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to d
On Nov 15, 7:57 am, Piru <[EMAIL PROTECTED]> wrote:
> Hi all,
> it's my first post here;)
> I have same issue -
>
> ...
>
> UnicodeEncodeError
> 'ascii' codec can't encode character u'\u017c' in position 4: ordinal
> not in range(128)
>
> Exception Type: UnicodeEncodeError
> Exception Va
On 15-Nov-07, at 4:27 AM, Piru wrote:
> I don't know how to handle this thing...
1. django version - unicode django or something older, please specify
2. database backend - unicode database or not, please specify
3. paste the model which is causing the trouble
--
regards
kg
http://lawgon.liv
Hi all,
it's my first post here;)
I have same issue -
...
UnicodeEncodeError
'ascii' codec can't encode character u'\u017c' in position 4: ordinal
not in range(128)
Exception Type: UnicodeEncodeError
Exception Value:'ascii' codec can't encode character u'\u017c' in
position 4:
Malcolm,
Thanks for the explanation, I did mean to reply to your other message,
sorry for working on your nerves.
I understand now why it's a bad idea to use setdefaultencoding().
Bert
On Nov 1, 4:12 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Wed, 2007-10-31 at 10:10 -0700, Bert He
On Wed, 2007-10-31 at 10:10 -0700, Bert Heymans wrote:
> Malcolm,
>
> I found this thread, someone who claims to maintain the Python FAQ
> says it's OK to use the routine but(!) only in sitecustomize.py:
By "that routine", I guess you meant setdefaultencoding() [see the
problem with top-posting.
Malcolm,
I found this thread, someone who claims to maintain the Python FAQ
says it's OK to use the routine but(!) only in sitecustomize.py:
http://groups.google.com/group/comp.lang.python/browse_frm/thread/464dc112819e0098/75748feab89498bd?lnk=gst&q=sys.setdefaultencoding#75748feab89498bd
I'm
On Fri, 2007-10-12 at 10:10 +0200, Michal Konvalinka wrote:
> Hi group,
> I have a problem with this variable in
> django.contrib.admin.templates.admin.change_form.html
> {{ original|truncatewords:"18"|escape }}
>
> I'm getting this error:
>
> UnicodeEncodeError at /admin/player/playerprofile/5/
On Fri, 2007-10-12 at 10:29 +0200, Dirk Eschler wrote:
[...]
> i got around most of my unicode related problems by setting Pythons default
> encoding to utf-8.
>
> $ cat /usr/lib/python2.4/sitecustomize.py
> import sys
> sys.setdefaultencoding("utf-8")
Oh, no. That's a highly unrecommended solu
Hi Dirk,
thanks for your hint, I might use it in future.
I got around my unicode problem by upgrading Python from 2.4 to 2.5
and... it works.
Michal
On 12/10/2007, Dirk Eschler <[EMAIL PROTECTED]> wrote:
>
> On Freitag, 12. Oktober 2007, Michal Konvalinka wrote:
> > Hi group,
> > I have a problem
On Freitag, 12. Oktober 2007, Michal Konvalinka wrote:
> Hi group,
> I have a problem with this variable in
> django.contrib.admin.templates.admin.change_form.html
> {{ original|truncatewords:"18"|escape }}
>
> I'm getting this error:
>
> UnicodeEncodeError at /admin/player/playerprofile/5/
> 'asc
11 matches
Mail list logo