Re: Unable to storing unicode data using django

2013-04-13 Thread Tom Evans
On Sat, Apr 13, 2013 at 6:37 AM, mln sastry wrote: > > > Hi Anshum, > Thank you for responding. > I defined a Book model as shown below and tried to save it from the admin > shell. > I am using python2.7.3 , django1.5, and python mysql driver 1.2.3. > I am not sure if

RE: Unable to storing unicode data using django

2013-04-13 Thread Anshum Verma
13-‎04-‎2013 20:14 To: Anshum Verma <anshum.ve...@gmail.com> Cc: django-users@googlegroups.com Subject: Re: Unable to storing unicode data using django Hi Anshum, At first I modified the db charset with below commands. It did not help. ALTER DATABASE mybooks DEFAULT CHARACTER SET = 'utf8' DEF

Re: Unable to storing unicode data using django

2013-04-13 Thread mln sastry
m Verma <anshum.ve...@gmail.com> > Cc: django-users@googlegroups.com > Subject: Re: Unable to storing unicode data using django > > > > Hi Anshum, > Thank you for responding. > I defined a Book model as shown below and tried to save it from the > admin shell. >

RE: Unable to storing unicode data using django

2013-04-13 Thread Anshum Verma
sastry <sastry...@gmail.com> Sent: ‎13-‎04-‎2013 11:07 To: Anshum Verma <anshum.ve...@gmail.com> Cc: django-users@googlegroups.com Subject: Re: Unable to storing unicode data using django Hi Anshum, Thank you for responding. I defined a Book model as shown below and tried to

Re: Unable to storing unicode data using django

2013-04-12 Thread mln sastry
Hi Anshum, Thank you for responding. I defined a Book model as shown below and tried to save it from the admin shell. I am using python2.7.3 , django1.5, and python mysql driver 1.2.3. I am not sure if my model data type is wrong or if any qualifier is missing. Please help. I got this

RE: Unable to storing unicode data using django

2013-04-12 Thread Anshum Verma
Utf8 is default support in django unless you are explicitly typecasting to str. Please provide details of traceback and code snippets to debug this. Sent from my Windows Phone -- From: sastry mln Sent: 12-04-2013 17:29 To:

Re: Unable to storing unicode data using django

2013-04-12 Thread Tom Evans
On Fri, Apr 12, 2013 at 6:38 AM, sastry mln wrote: > Hi All, > I have a mysqldb with utf8 charset and utf8_general_ci collation. The > tables are also explicity defined to use the same charset/collation > I have a django model with CharField. > I want to store unicode