Foreign language in View Model.

2009-10-10 Thread Rizwan
Hello Djangoer, I am trying to create website with foreign language in it. I have created model for content type and added one page in it. It saving fine in database. When I have tried to write view model for this page. Its showing me "?" rather then foreign character. I am new born baby in d

Re: Foreign language in View Model.

2009-10-10 Thread Joshua Russo
On Sat, Oct 10, 2009 at 9:15 AM, Rizwan wrote: > > Hello Djangoer, > > I am trying to create website with foreign language in it. I have > created model for content type and added one page in it. It saving > fine in database. When I have tried to write view model for this page. > Its showing me "

Re: Foreign language in View Model.

2009-10-10 Thread Rizwan
I am trying to extend flatpage view...I have added custom code here..you can see navigation showing question mark here http://beta.rmansuri.net/homepage/ from django.contrib.flatpages.models import FlatPage from django.template import loader, RequestContext from django.shortcuts import get_objec

Re: Foreign language in View Model.

2009-10-11 Thread Joshua Russo
You may want to check how the encoding is set in your database. Make sure you are using utf-8. On Sat, Oct 10, 2009 at 9:43 PM, Rizwan wrote: > > I am trying to extend flatpage view...I have added custom code > here..you can see navigation showing question mark here > http://beta.rmansuri.net/ho

Re: Foreign language in View Model.

2009-10-12 Thread Rizwan
I did change my encoding to utf-8. As its showing character very well in flatpages. I would like extend this flatpage view code. so I have lookup from database which render foreign string which not displaying as it should be. Thanks, On 11 Oct, 11:59, Joshua Russo wrote: > You may want to check

Re: Foreign language in View Model.

2009-10-12 Thread Karen Tracey
On Sat, Oct 10, 2009 at 6:43 PM, Rizwan wrote: > > I am trying to extend flatpage view...I have added custom code > here..you can see navigation showing question mark here > http://beta.rmansuri.net/homepage/ > > > [snip] >#custom code start >db = MySQLdb.connect > (user='rmansuri_gq',db=