2007年07月17日 星期二 14:15
Kevin anew£¬ÄúºÃ£¡ ¡¡¡¡Ã»ÓÐ˵picklerËüdumps³öÀ´µÄÒ»¶¨ÊÇutf-8µÄ°É£¬ Ó¦¸Ã¿´Äãµ±³õ´æ´¢µÄÊÇʲô¡£ ======== 2007-07-17 14:11:28 ÄúÔÚÀ´ÐÅÖÐдµÀ£º ======== ÎÒÏÖÔÚµÄÊý¾Ý¿âÊÇPostgreSQL 8.1, ±àÂëÊÇUTF8£¬ÎÒÏë°Ñ pickler.dumps ºóµÄÊý¾ÝÊÇ´æÈëÊý¾Ý¿âÖУ¬µ«ÊÇÓÐʱºò»á³öÏÖdumps·µ»ØµÄÊý¾Ý²»ÊÇUTF8±àÂë¶øÎÞ·¨²åÈë¡£ ÇëÎÊÓÐʲô°ì·¨¿ÉÒÔ±ÜÃâÕâ¸öÎÊÌâÂ𣿠= = = = = = = = = = = = = = = = = = = = = = ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ö Àñ£¡ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÕÔÍþ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡zhaowei在pythonid.com ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2007-07-17 -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070717/93880906/attachment.htm
2007年07月17日 星期二 14:22
如果只是存储的话,先base64等等编码后推入就成了, pickly 出来的也不过是字串哪 On 7/17/07, 赵威 <zhaowei在pythonid.com> wrote: > > Kevin anew,您好! > > 没有说pickler它dumps出来的一定是utf-8的吧, 应该看你当初存储的是什么。 > > ======== 2007-07-17 14:11:28 您在来信中写道: ======== > > > > 我现在的数据库是PostgreSQL 8.1, 编码是UTF8,我想把 pickler.dumps 后的数据是存入数据库中,但是有时候会出现dumps返回的数据不是UTF8编码而无法插入。 > > 请问有什么办法可以避免这个问题吗? > > > > = = = = = = = = = = = = = = = = = = = = = = > > 致 > 礼! > > 赵威 > zhaowei在pythonid.com > 2007-07-17 > > _______________________________________________ > 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 > -- '''Time is unimportant, only life important! http://zoomquiet.org blog在http://blog.zoomquiet.org/pyblosxom/ wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet scrap在http://floss.zoomquiet.org douban在http://www.douban.com/people/zoomq/ ____________________________________ Pls. use OpenOffice.org to replace M$ Office. http://zh.openoffice.org Pls. use 7-zip to replace WinRAR/WinZip. http://7-zip.org/zh-cn/ You can get the truely Freedom 4 software. '''
Zeuux © 2025
京ICP备05028076号