2008年01月04日 星期五 18:11
'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) ¿É¶àÒ³Ã涼ÊÇÕâ¸ö±¨´í¡£¡£ ÒÔΪÊÇÒ³ÃæµÄÎÊÌ⣬ʹÓÃadminµÄ»°£¬µã»÷ÁбíҳʱÓеijö´í£¬ÓеÄÕý³£¡£¡£ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080104/51d0677a/attachment.htm
2008年01月04日 星期五 18:17
char to number (0-127) Èç¹ûû¼Ç´íµÄ»° Date: Fri, 4 Jan 2008 18:11:22 +0800 From: mydjango在gmail.com To: python-chinese在lists.python.cn Subject: [python-chinese] Éý¼¶µ½ trunk£¬0.96ÏÂ×öµÄ³ÌÐòÈ«¶¼´íÁË¡£¡£ 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) ¿É¶àÒ³Ã涼ÊÇÕâ¸ö±¨´í¡£¡£ ÒÔΪÊÇÒ³ÃæµÄÎÊÌ⣬ʹÓÃadminµÄ»°£¬µã»÷ÁбíҳʱÓеijö´í£¬ÓеÄÕý³£¡£¡£ _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080104/0c4771ad/attachment.html
2008年01月04日 星期五 18:54
Porting Applications TO Unicode Branch http://code.djangoproject.com/wiki/UnicodeBranch#PortingApplicationsTheQuickChecklist On Jan 4, 2008 6:11 PM, 1234 <mydjango at gmail.com> wrote: > 'ascii' codec can't encode characters in position 0-1: ordinal not in > range(128) > 可多页面都是这个报错。。 以为是页面的问题,使用admin的话,点击列表页时有的出错,有的正常。。 > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -- http://codeplayer.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20080104/4166be88/attachment.html
2008年01月04日 星期五 19:03
On Jan 4, 2008 6:11 PM, 1234 <mydjango在gmail.com> wrote: > 'ascii' codec can't encode characters in position 0-1: ordinal not in > range(128) > 可多页面都是这个报错。。 以为是页面的问题,使用admin的话,点击列表页时有的出错,有的正常。。 > 最有可能的问题是: 需要把__str__改为__unicode__ -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide < >: http://code.google.com/p/meide/ My Blog: http://www.donews.net/limodou
2008年01月05日 星期六 09:14
½â¾öÁË Ð»Ð»¸÷룬 ¾ÍÊÇ __unicode__ µÄÎÊÌ⠱任ÒÔºó¾ÍºÃÁË£¬²»¹ýһЩ¶¨ÖÆsql »¹ÊÇÓÐЩÎÊÌ⣬ÕâЩÂýÂý½â¾öÁË¡«¡«¡« Ê®·Ö¸Ðл ÔÚ08-1-4£¬limodou <limodou在gmail.com> дµÀ£º > > On Jan 4, 2008 6:11 PM, 1234 <mydjango在gmail.com> wrote: > > 'ascii' codec can't encode characters in position 0-1: ordinal not in > > range(128) > > ¿É¶àÒ³Ã涼ÊÇÕâ¸ö±¨´í¡£¡£ ÒÔΪÊÇÒ³ÃæµÄÎÊÌ⣬ʹÓÃadminµÄ»°£¬µã»÷ÁбíҳʱÓеijö´í£¬ÓеÄÕý³£¡£¡£ > > > ×îÓпÉÄܵÄÎÊÌâÊÇ£º > > ÐèÒª°Ñ__str__¸ÄΪ__unicode__ > > -- > I like python! > UliPad <>: http://code.google.com/p/ulipad/ > meide <>: http://code.google.com/p/meide/ > My Blog: http://www.donews.net/limodou > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080105/f92540fa/attachment.html
2008年01月05日 星期六 13:32
真险! 当初我升到.96得时候也出现一些问题。 让人心惊肉跳 On Jan 5, 2008 9:14 AM, 1234 <mydjango at gmail.com> wrote: > 解决了 谢谢各位, 就是 __unicode__ 的问题 变换以后就好了,不过一些定制sql 还是有些问题,这些慢慢解决了~~~ 十分感谢 > > 在08-1-4,limodou <limodou at gmail.com > 写道: > > On Jan 4, 2008 6:11 PM, 1234 <mydjango at gmail.com > wrote: > > > 'ascii' codec can't encode characters in position 0-1: ordinal not in > > > range(128) > > > 可多页面都是这个报错。。 以为是页面的问题,使用admin的话,点击列表页时有的出错,有的正常。。 > > > > > 最有可能的问题是: > > > > 需要把__str__改为__unicode__ > > > > -- > > I like python! > > UliPad <>: http://code.google.com/p/ulipad/ > > meide <>: http://code.google.com/p/meide/ > > My Blog: http://www.donews.net/limodou > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -- 关注LAMP平台、安全、及web开发的个人blog: http://hackgou.itbbq.com PGP KeyID: hackgou#Gmail.com PGP KeyServ: subkeys.pgp.net
Zeuux © 2024
京ICP备05028076号