Re: __unicode__() method not working in models.py

2008-10-30 Thread Andrew
> I do not know if this will work for Japanese Windows, but for the English > version, the two things I have found that need to be done to ensure a > command prompt properly displays utf-8 > are first: > > chcp 65001 > > in the command prompt to change the active code page to the one that works >

Re: __unicode__() method not working in models.py

2008-10-30 Thread Andrew
> > Are you declaring the encoding of your source file? > > Try putting > > # -*- coding: UTF-8 -*- > > at the top of your file. > > regards >  Steve Hi Steve, thanks for the reply. Exceptions are raised if you input Japanese characters into a file and fail to declare the coding. That was the fir

Re: __unicode__() method not working in models.py

2008-10-30 Thread Karen Tracey
2008/10/30 Andrew <[EMAIL PROTECTED]> > > I am currently working through the django book and I've got to the > fifth chapter where I would like to replace the __str__() methods with > __unicode__() methods instead. The reason is that my database will > hold a great deal of Japanese text, UTF-8 enc

Re: __unicode__() method not working in models.py

2008-10-30 Thread Steve Holden
Andrew wrote: > I am currently working through the django book and I've got to the > fifth chapter where I would like to replace the __str__() methods with > __unicode__() methods instead. The reason is that my database will > hold a great deal of Japanese text, UTF-8 encoded. After declaring the

__unicode__() method not working in models.py

2008-10-30 Thread Andrew
I am currently working through the django book and I've got to the fifth chapter where I would like to replace the __str__() methods with __unicode__() methods instead. The reason is that my database will hold a great deal of Japanese text, UTF-8 encoded. After declaring the UTF-8 encoding at the

__unicode__() method not working in models.py

2008-10-30 Thread Andrew
I am currently working through the django book and I've got to the fifth chapter where I would like to replace the __str__() methods with __unicode__() methods instead. The reason is that my database will hold a great deal of Japanese text, UTF-8 encoded. After declaring the UTF-8 encoding at the