2006年04月07日 星期五 09:06
给原作者发了信,看看是不是能有个固定域名,比如:http://cn.diveintopython.org 或 htpp://diveintopython.woodpecker.org.cn 等等。 不过还没有回音。所以大家先在 http://www.woodpecker.org.cn/obp/diveintopython-zh-5.4/zh-cn/dist/html/ 看吧。 有任何相关的翻译问题,请到 http://www.djangocn.org/blog/DiveIntoPython/ 发表意见,我们会不断改进并更新。 ========================== [osmond http://osmond.cn] [osmond sinosmond at gmail.com] [osmond sinosmond at hotmail.com] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/26f99a72/attachment.htm
2006年04月07日 星期五 09:27
好啊! 在 06-4-7,Liang Osmond<sinosmond at gmail.com> 写道: > 给原作者发了信,看看是不是能有个固定域名,比如:http://cn.diveintopython.org 或 > htpp://diveintopython.woodpecker.org.cn 等等。 > 不过还没有回音。所以大家先在 > http://www.woodpecker.org.cn/obp/diveintopython-zh-5.4/zh-cn/dist/html/ > 看吧。 > > 有任何相关的翻译问题,请到 http://www.djangocn.org/blog/DiveIntoPython/ > 发表意见,我们会不断改进并更新。 > > ========================== > [osmond http://osmond.cn] > [osmond sinosmond at gmail.com] > [osmond sinosmond at hotmail.com] > _______________________________________________ > 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
2006年04月07日 星期五 13:10
感谢你们这些参与翻译的人员,辛苦了 在06-4-7,wolfg <wolfg1969 at gmail.com> 写道: > > 好啊! > > 在 06-4-7,Liang Osmond<sinosmond at gmail.com> 写道: > > 给原作者发了信,看看是不是能有个固定域名,比如:http://cn.diveintopython.org 或 > > htpp://diveintopython.woodpecker.org.cn 等等。 > > 不过还没有回音。所以大家先在 > > http://www.woodpecker.org.cn/obp/diveintopython-zh-5.4/zh-cn/dist/html/ > > 看吧。 > > > > 有任何相关的翻译问题,请到 http://www.djangocn.org/blog/DiveIntoPython/ > > 发表意见,我们会不断改进并更新。 > > > > ========================== > > [osmond http://osmond.cn] > > [osmond sinosmond at gmail.com] > > [osmond sinosmond at hotmail.com] > > _______________________________________________ > > 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 > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/0994f130/attachment-0001.html
2006年04月07日 星期五 15:39
向那些翻译和校对,还有最终整理的朋友致敬! Qutr,qutianrang at gmail.com 2006-4-7 ----- 收到以下来信内容 ----- 发件人: Liang Osmond 收件人: python-chinese 时 间: 2006-04-07, 09:06:03 主 题: [python-chinese] 《Dive into Python》V5.4 中文版发布 给原作者发了信,看看是不是能有个固定域名,比如:http://cn.diveintopython.org 或 htpp://diveintopython.woodpecker.org.cn 等等。 不过还没有回音。所以大家先在 http://www.woodpecker.org.cn/obp/diveintopython-zh-5.4/zh-cn/dist/html/ 看吧。 有任何相关的翻译问题,请到 http://www.djangocn.org/blog/DiveIntoPython/ 发表意见,我们会不断改进并更新。 ========================== [osmond http://osmond.cn] [osmond sinosmond at gmail.com] [osmond sinosmond at hotmail.com] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/ad392b07/attachment.html
2006年04月07日 星期五 17:00
没有PDF版本吗? -- 云电清华同方小民工 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/f125fb8a/attachment.htm
2006年04月07日 星期五 17:54
非常感谢! 中文版 chm 中,我找到一个错别字: "文档化函数" 这里: 取绝 -》取决 在06-4-7,笨笨狗 <chen.ruijie at gmail.com> 写道: > > 没有PDF版本吗? > > -- > 云电清华同方小民工 > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/051514b6/attachment.htm
2006年04月07日 星期五 18:10
在解析XML文档的时候,得到s 的值如下,请问如何正确的,显示出中文?他标示的是Unicode,但是实际的内容确实gbk,请问该怎么办? s = u'\xd6\xd0\xb9\xfa\xca\xaf\xbb\xaf(600028) : \xc4\xda\xb2\xbf\xc8\xcb\xd4\xb1\xb3\xd6\xb9\xc9 - \xcb\xd1\xba\xfc\xb9\xc9\xc6\xb1' -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/e83d5934/attachment.html
2006年04月07日 星期五 18:14
持续关注,在用asp和php开发中遇到不少字符编码的问题,不知道python如何解决? On 4/7/06, Steven Wang (:) <zdwang at xinces.com> wrote: > > 在解析XML文档的时候,得到s 的值如下,请问如何正确的,显示出中文?他标示的是Unicode,但是实际的内容确实gbk,请问该怎么办? > > s = u'\xd6\xd0\xb9\xfa\xca\xaf\xbb\xaf(600028) : > \xc4\xda\xb2\xbf\xc8\xcb\xd4\xb1\xb3\xd6\xb9\xc9 - > \xcb\xd1\xba\xfc\xb9\xc9\xc6\xb1' > > > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/3f9e6ca4/attachment.htm
2006年04月07日 星期五 18:43
是如下的中文吗? 脰脨鹿煤脢炉禄炉(600028) : 脛脷虏驴脠脣脭卤鲁脰鹿脡 - 脣脩潞眉鹿脡脝卤 On 4/7/06, alcides yolan <xyolan at gmail.com> wrote: > > 持续关注,在用asp和php开发中遇到不少字符编码的问题,不知道python如何解决? > > On 4/7/06, Steven Wang (:) <zdwang at xinces.com> wrote: > > > 在解析XML文档的时候,得到s 的值如下,请问如何正确的,显示出中文?他标示的是Unicode,但是实际的内容确实gbk,请问该怎么办? > > s = u'\xd6\xd0\xb9\xfa\xca\xaf\xbb\xaf(600028) : > \xc4\xda\xb2\xbf\xc8\xcb\xd4\xb1\xb3\xd6\xb9\xc9 - > \xcb\xd1\xba\xfc\xb9\xc9\xc6\xb1' > > > > _______________________________________________ > 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 > > -- ※※※※※※※※※※※※※※※※※※※※※※※※ My blog: http://blog.donews.com/ygao Forum http://groups.google.com/group/python_study ※※※※※※※※※※※※※※※※※※※※※※※※ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/739f01ce/attachment.html
2006年04月07日 星期五 18:47
s的内容是:中国石化(600028) : 内部人员持股 - 搜狐股票----- Original Message ----- From: ygao To: python-chinese at lists.python.cn Sent: Friday, April 07, 2006 6:43 PM Subject: Re: [python-chinese] 一个编码问题? 是如下的中文吗? 脰脨鹿煤脢炉禄炉(600028) : 脛脷虏驴脠脣脭卤鲁脰鹿脡 - 脣脩潞眉鹿脡脝卤 On 4/7/06, alcides yolan <xyolan at gmail.com> wrote: 持续关注,在用asp和php开发中遇到不少字符编码的问题,不知道python如何解决? On 4/7/06, Steven Wang (:) < zdwang at xinces.com> wrote: 在解析XML文档的时候,得到s 的值如下,请问如何正确的,显示出中文?他标示的是Unicode,但是实际的内容确实gbk,请问该怎么办? s = u'\xd6\xd0\xb9\xfa\xca\xaf\xbb\xaf(600028) : \xc4\xda\xb2\xbf\xc8\xcb\xd4\xb1\xb3\xd6\xb9\xc9 - \xcb\xd1\xba\xfc\xb9\xc9\xc6\xb1' _______________________________________________ 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 -- ※※※※※※※※※※※※※※※※※※※※※※※※ My blog: http://blog.donews.com/ygao Forum http://groups.google.com/group/python_study ※※※※※※※※※※※※※※※※※※※※※※※※ ------------------------------------------------------------------------------ _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/4e9c57ca/attachment-0001.html
2006年04月07日 星期五 20:51
同样期待有人能给出解决方法 2006/4/7, Steven Wang (:) <zdwang at xinces.com>: > > s的内容是:中国石化(600028) : 内部人员持股 - 搜狐股票 > > ----- Original Message ----- > *From:* ygao <ygao2004 at gmail.com> > *To:* python-chinese at lists.python.cn > *Sent:* Friday, April 07, 2006 6:43 PM > *Subject:* Re: [python-chinese] 一个编码问题? > > 是如下的中文吗? > > 脰脨鹿煤脢炉禄炉(600028) : 脛脷虏驴脠脣脭卤鲁脰鹿脡 - 脣脩潞眉鹿脡脝卤 > > On 4/7/06, alcides yolan <xyolan at gmail.com> wrote: > > > > 持续关注,在用asp和php开发中遇到不少字符编码的问题,不知道python如何解决? > > > > On 4/7/06, Steven Wang (:) < zdwang at xinces.com> wrote: > > > > > 在解析XML文档的时候,得到s 的值如下,请问如何正确的,显示出中文?他标示的是Unicode,但是实际的内容确实gbk,请问该怎么办? > > > > s = u'\xd6\xd0\xb9\xfa\xca\xaf\xbb\xaf(600028) : > > \xc4\xda\xb2\xbf\xc8\xcb\xd4\xb1\xb3\xd6\xb9\xc9 - > > \xcb\xd1\xba\xfc\xb9\xc9\xc6\xb1' > > > > > > > > _______________________________________________ > > 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 > > > > > > > -- > ※※※※※※※※※※※※※※※※※※※※※※※※ > My blog: http://blog.donews.com/ygao > Forum http://groups.google.com/group/python_study > ※※※※※※※※※※※※※※※※※※※※※※※※ > > ------------------------------ > > _______________________________________________ > 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 > > -- I like Python & Linux. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/69ddde12/attachment.htm
2006年04月07日 星期五 20:58
由于原作者使用的生成 PDF 的工具 HTMLDoc <http://www.easysw.com/htmldoc/> 目前还不支持中文, 又由于使用了python 代码着色,所以直接使用 FOP 生成 PDF 将无法实现 Python 着色。 因此,目前直接生成 PDF 文件还有困难,希望大家一同努力,找出解决方案。 在06-4-7,笨笨狗 <chen.ruijie at gmail.com> 写道: > > 没有PDF版本吗? > > -- > 云电清华同方小民工 > > _______________________________________________ > 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 > > -- ========================== [osmond http://osmond.cn] [osmond sinosmond at gmail.com] [osmond sinosmond at hotmail.com] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/11db5b12/attachment.html
2006年04月07日 星期五 21:09
在 06-4-7,Liang Osmond<sinosmond at gmail.com> 写道: > 给原作者发了信,看看是不是能有个固定域名,比如:http://cn.diveintopython.org 或 > htpp://diveintopython.woodpecker.org.cn 等等。 > 不过还没有回音。所以大家先在 > http://www.woodpecker.org.cn/obp/diveintopython-zh-5.4/zh-cn/dist/html/ > 看吧。 > > 有任何相关的翻译问题,请到 http://www.djangocn.org/blog/DiveIntoPython/ > 发表意见,我们会不断改进并更新。 > 哈哈哈!! 终于出炉啦! 向广大为此工作的pythoner致敬~~~!!!
2006年04月07日 星期五 22:25
这个问题非常有趣,把一段数据流错误地弄成UNICODE。但数据流的值却是正常的。 我们要还原:以下的过程有一个技巧。 >>> import re >>> uni= re.compile(u'(.*?)') >>> d=repr(s) >>> dd=uni.match(d) >>> cc=dd.group(1) >>> cc '\\xd6\\xd0\\xb9\\xfa\\xca\\xaf\\xbb\\xaf(600028) : \\xc4\\xda\\xb2\\xbf\\xc8\\xcb\\xd4\\xb1\\xb3\\xd6\\xb9\\xc9<file://xc4//xda//xb2//xbf//xc8//xcb//xd4//xb1//xb3//xd6//xb9//xc9>- \\xcb\\xd1\\xba\\xfc\\xb9\\xc9\\xc6\\xb1'<file://xcb//xd1//xba//xfc//xb9//xc9//xc6//xb1'> >>> print cc.decode("string-escape").decode("gb2312") 中国石化(600028) : 内部人员持股 - 搜狐股票 >>> print cc.decode("string-escape").decode("gb18030") 中国石化(600028) : 内部人员持股 - 搜狐股票 >>> On 4/7/06, 员旭鹏 <recordus at gmail.com> wrote: > > 同样期待有人能给出解决方法 > > 2006/4/7, Steven Wang (:) <zdwang at xinces.com>: > > > s的内容是:中国石化(600028) : 内部人员持股 - 搜狐股票 > > > > ----- Original Message ----- > > *From:* ygao <ygao2004 at gmail.com> > > *To:* python-chinese at lists.python.cn > > *Sent:* Friday, April 07, 2006 6:43 PM > > *Subject:* Re: [python-chinese] 一个编码问题? > > > > > > 是如下的中文吗? > > > > 脰脨鹿煤脢炉禄炉(600028) : 脛脷虏驴脠脣脭卤鲁脰鹿脡 - 脣脩潞眉鹿脡脝卤 > > > > On 4/7/06, alcides yolan <xyolan at gmail.com> wrote: > > > > > > 持续关注,在用asp和php开发中遇到不少字符编码的问题,不知道python如何解决? > > > > > > On 4/7/06, Steven Wang (:) < zdwang at xinces.com> wrote: > > > > > > > 在解析XML文档的时候,得到s > > > 的值如下,请问如何正确的,显示出中文?他标示的是Unicode,但是实际的内容确实gbk,请问该怎么办? > > > > > > s = u'\xd6\xd0\xb9\xfa\xca\xaf\xbb\xaf(600028) : > > > \xc4\xda\xb2\xbf\xc8\xcb\xd4\xb1\xb3\xd6\xb9\xc9 - > > > \xcb\xd1\xba\xfc\xb9\xc9\xc6\xb1' > > > > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > > > > > > -- > > ※※※※※※※※※※※※※※※※※※※※※※※※ > > My blog: http://blog.donews.com/ygao > > Forum http://groups.google.com/group/python_study > > ※※※※※※※※※※※※※※※※※※※※※※※※ > > > > ------------------------------ > > > > _______________________________________________ > > 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 > > > > > > > -- > I like Python & Linux. > > _______________________________________________ > 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 > > -- ※※※※※※※※※※※※※※※※※※※※※※※※ My blog: http://blog.donews.com/ygao Forum http://groups.google.com/group/python_study ※※※※※※※※※※※※※※※※※※※※※※※※ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/fd91bb64/attachment.htm
2006年04月07日 星期五 22:33
uni= re.compile(r"u'(.*?)'"') On 4/7/06, ygao <ygao2004 at gmail.com> wrote: > > 这个问题非常有趣,把一段数据流错误地弄成UNICODE。但数据流的值却是正常的。 > 我们要还原:以下的过程有一个技巧。 > > >>> import re > >>> uni= re.compile(u'(.*?)') > >>> d=repr(s) > >>> dd=uni.match(d) > >>> cc=dd.group(1) > >>> cc > '\\xd6\\xd0\\xb9\\xfa\\xca\\xaf\\xbb\\xaf(600028) : > \\xc4\\xda\\xb2\\xbf\\xc8\\xcb\\xd4\\xb1\\xb3\\xd6\\xb9\\xc9 - > \\xcb\\xd1\\xba\\xfc\\xb9\\xc9\\xc6\\xb1' > >>> print cc.decode("string-escape").decode("gb2312") > 中国石化(600028) : 内部人员持股 - 搜狐股票 > >>> print cc.decode("string-escape").decode("gb18030") > 中国石化(600028) : 内部人员持股 - 搜狐股票 > >>> > > > On 4/7/06, 员旭鹏 <recordus at gmail.com> wrote: > > > > 同样期待有人能给出解决方法 > > > > 2006/4/7, Steven Wang (:) <zdwang at xinces.com>: > > > > > s的内容是:中国石化(600028) : 内部人员持股 - 搜狐股票 > > > > > > ----- Original Message ----- > > > *From:* ygao <ygao2004 at gmail.com> > > > *To:* python-chinese at lists.python.cn > > > *Sent:* Friday, April 07, 2006 6:43 PM > > > *Subject:* Re: [python-chinese] 一个编码问题? > > > > > > > > > 是如下的中文吗? > > > > > > 脰脨鹿煤脢炉禄炉(600028) : 脛脷虏驴脠脣脭卤鲁脰鹿脡 - 脣脩潞眉鹿脡脝卤 > > > > > > On 4/7/06, alcides yolan <xyolan at gmail.com> wrote: > > > > > > > > 持续关注,在用asp和php开发中遇到不少字符编码的问题,不知道python如何解决? > > > > > > > > On 4/7/06, Steven Wang (:) < zdwang at xinces.com> wrote: > > > > > > > > > 在解析XML文档的时候,得到s > > > > 的值如下,请问如何正确的,显示出中文?他标示的是Unicode,但是实际的内容确实gbk,请问该怎么办? > > > > > > > > s = u'\xd6\xd0\xb9\xfa\xca\xaf\xbb\xaf(600028) : > > > > \xc4\xda\xb2\xbf\xc8\xcb\xd4\xb1\xb3\xd6\xb9\xc9 - > > > > \xcb\xd1\xba\xfc\xb9\xc9\xc6\xb1' > > > > > > > > > > > > > > > > _______________________________________________ > > > > 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 > > > > > > > > > > > > > > > > > -- > > > ※※※※※※※※※※※※※※※※※※※※※※※※ > > > My blog: http://blog.donews.com/ygao > > > Forum http://groups.google.com/group/python_study > > > ※※※※※※※※※※※※※※※※※※※※※※※※ > > > > > > ------------------------------ > > > > > > _______________________________________________ > > > 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 > > > > > > > > > > > > -- > > I like Python & Linux. > > > > _______________________________________________ > > 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 > > > > > > > -- > ※※※※※※※※※※※※※※※※※※※※※※※※ > My blog: http://blog.donews.com/ygao > Forum http://groups.google.com/group/python_study > ※※※※※※※※※※※※※※※※※※※※※※※※ > -- ※※※※※※※※※※※※※※※※※※※※※※※※ My blog: http://blog.donews.com/ygao Forum http://groups.google.com/group/python_study ※※※※※※※※※※※※※※※※※※※※※※※※ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/53cc09ab/attachment-0001.html
2006年04月07日 星期五 22:34
这个问题非常有趣,把一段数据流错误地弄成UNICODE。但数据流的值却是正常的。 我们要还原:以下的过程有一个技巧。 >>> import re >>> uni= re.compile(r"u'(.*?)'") >>> d=repr(s) >>> dd=uni.match(d) >>> cc=dd.group(1) >>> cc '\\xd6\\xd0\\xb9\\xfa\\xca\\xaf\\xbb\\xaf(600028) : \\xc4\\xda\\xb2\\xbf\\xc8\\xcb\\xd4\\xb1\\xb3\\xd6\\xb9\\xc9 - \\xcb\\xd1\\xba\\xfc\\xb9\\xc9\\xc6\\xb1' >>> print cc.decode("string-escape").decode("gb2312") 中国石化(600028) : 内部人员持股 - 搜狐股票 >>> print cc.decode("string-escape").decode("gb18030") 中国石化(600028) : 内部人员持股 - 搜狐股票 >>> On 4/7/06, 员旭鹏 <recordus at gmail.com> wrote: > > 同样期待有人能给出解决方法 > > 2006/4/7, Steven Wang (:) <zdwang at xinces.com>: > > > s的内容是:中国石化(600028) : 内部人员持股 - 搜狐股票 > > > > ----- Original Message ----- > > *From:* ygao <ygao2004 at gmail.com> > > *To:* python-chinese at lists.python.cn > > *Sent:* Friday, April 07, 2006 6:43 PM > > *Subject:* Re: [python-chinese] 一个编码问题? > > > > > > 是如下的中文吗? > > > > 脰脨鹿煤脢炉禄炉(600028) : 脛脷虏驴脠脣脭卤鲁脰鹿脡 - 脣脩潞眉鹿脡脝卤 > > > > On 4/7/06, alcides yolan <xyolan at gmail.com> wrote: > > > > > > 持续关注,在用asp和php开发中遇到不少字符编码的问题,不知道python如何解决? > > > > > > On 4/7/06, Steven Wang (:) < zdwang at xinces.com> wrote: > > > > > > > 在解析XML文档的时候,得到s > > > 的值如下,请问如何正确的,显示出中文?他标示的是Unicode,但是实际的内容确实gbk,请问该怎么办? > > > > > > s = u'\xd6\xd0\xb9\xfa\xca\xaf\xbb\xaf(600028) : > > > \xc4\xda\xb2\xbf\xc8\xcb\xd4\xb1\xb3\xd6\xb9\xc9 - > > > \xcb\xd1\xba\xfc\xb9\xc9\xc6\xb1' > > > > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > > > > > > -- > > ※※※※※※※※※※※※※※※※※※※※※※※※ > > My blog: http://blog.donews.com/ygao > > Forum http://groups.google.com/group/python_study > > ※※※※※※※※※※※※※※※※※※※※※※※※ > > > > ------------------------------ > > > > _______________________________________________ > > 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 > > > > > > > -- > I like Python & Linux. > > _______________________________________________ > 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 > > -- ※※※※※※※※※※※※※※※※※※※※※※※※ My blog: http://blog.donews.com/ygao Forum http://groups.google.com/group/python_study ※※※※※※※※※※※※※※※※※※※※※※※※ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/6399caac/attachment.htm
2006年04月07日 星期五 22:54
呵呵,功德无量啊,致敬 :) On 4/7/06, Liang Osmond <sinosmond at gmail.com> wrote: > > 给原作者发了信,看看是不是能有个固定域名,比如:http://cn.diveintopython.org 或 > htpp://diveintopython.woodpecker.org.cn 等等。 > 不过还没有回音。所以大家先在 http://www.woodpecker.org.cn/obp/diveintopython-zh-5.4/zh-cn/dist/html/ > 看吧。 > > 有任何相关的翻译问题,请到 http://www.djangocn.org/blog/DiveIntoPython/发表意见,我们会不断改进并更新。 > > ========================== > [osmond http://osmond.cn] > [osmond sinosmond at gmail.com] > [osmond sinosmond at hotmail.com] > > _______________________________________________ > 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 > > -- Robert Python源码剖析――http://blog.donews.com/lemur/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/4e7d250f/attachment.htm
2006年04月08日 星期六 00:30
很巧妙,收录了,呵呵 2006/4/7, ygao <ygao2004 at gmail.com>: > > 这个问题非常有趣,把一段数据流错误地弄成UNICODE。但数据流的值却是正常的。 > 我们要还原:以下的过程有一个技巧。 > > >>> import re > >>> uni= re.compile(r"u'(.*?)'") > >>> d=repr(s) > >>> dd=uni.match(d) > >>> cc=dd.group(1) > >>> cc > '\\xd6\\xd0\\xb9\\xfa\\xca\\xaf\\xbb\\xaf(600028) : \\xc4\\xda\\xb2\\xbf\\xc8\\xcb\\xd4\\xb1\\xb3\\xd6\\xb9\\xc9 > - \\xcb\\xd1\\xba\\xfc\\xb9\\xc9\\xc6\\xb1' > >>> print cc.decode("string-escape").decode("gb2312") > 中国石化(600028) : 内部人员持股 - 搜狐股票 > >>> print cc.decode("string-escape").decode("gb18030") > 中国石化(600028) : 内部人员持股 - 搜狐股票 > >>> > -- I like Python & Linux. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060408/15229f09/attachment.htm
2006年04月08日 星期六 02:46
我觉得用OOo打开single html然后输出PDF就可以了。 On 4/7/06, Liang Osmond <sinosmond at gmail.com> wrote: > 由于原作者使用的生成 PDF 的工具 HTMLDoc 目前还不支持中文, > 又由于使用了python 代码着色,所以直接使用 FOP 生成 PDF 将无法实现 Python 着色。 > 因此,目前直接生成 PDF 文件还有困难,希望大家一同努力,找出解决方案。 > > > 在06-4-7,笨笨狗 <chen.ruijie at gmail.com> 写道: > > > > > > 没有PDF版本吗? > > > > -- > > 云电清华同方小民工 > > _______________________________________________ > > 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 > > > > > > > > -- > > ========================== > [osmond http://osmond.cn] > [osmond sinosmond at gmail.com] > [osmond sinosmond at hotmail.com] > _______________________________________________ > 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 > >
2006年04月08日 星期六 08:18
是啊,这个方法还不错,生成的pdf在我这里效果还不错 在06-4-8,hufey <hufeyy at gmail.com> 写道: > > 我觉得用OOo打开single html然后输出PDF就可以了。 > > On 4/7/06, Liang Osmond <sinosmond at gmail.com> wrote: > > 由于原作者使用的生成 PDF 的工具 HTMLDoc 目前还不支持中文, > > 又由于使用了python 代码着色,所以直接使用 FOP 生成 PDF 将无法实现 Python 着色。 > > 因此,目前直接生成 PDF 文件还有困难,希望大家一同努力,找出解决方案。 > > > > > > 在06-4-7,笨笨狗 <chen.ruijie at gmail.com> 写道: > > > > > > > > > 没有PDF版本吗? > > > > > > -- > > > 云电清华同方小民工 > > > _______________________________________________ > > > 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 > > > > > > > > > > > > > > -- > > > > ========================== > > [osmond http://osmond.cn] > > [osmond sinosmond at gmail.com] > > [osmond sinosmond at hotmail.com] > > _______________________________________________ > > 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 > > -- I like Python & Linux. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060408/7d66880e/attachment.html
2006年04月08日 星期六 09:37
试过用openoffice生成吗? 在 06-4-7,Liang Osmond<sinosmond at gmail.com> 写道: > 由于原作者使用的生成 PDF 的工具 HTMLDoc 目前还不支持中文, > 又由于使用了python 代码着色,所以直接使用 FOP 生成 PDF 将无法实现 Python 着色。 > 因此,目前直接生成 PDF 文件还有困难,希望大家一同努力,找出解决方案。 > > > 在06-4-7,笨笨狗 <chen.ruijie at gmail.com> 写道: > > > > > > 没有PDF版本吗? > > > > -- > > 云电清华同方小民工 > > _______________________________________________ > > 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 > > > > > > > > -- > > ========================== > [osmond http://osmond.cn] > [osmond sinosmond at gmail.com] > [osmond sinosmond at hotmail.com] > _______________________________________________ > 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 > >
Zeuux © 2025
京ICP备05028076号