Python论坛  - 讨论区

标题:[python-chinese] 如何取得一个文本的编码格式?

2006年01月18日 星期三 01:02

李寻欢晕菜了 zhang.xiaoye at gmail.com
Wed Jan 18 01:02:44 HKT 2006

有一个文本,如何用python取得它的编码格式?如GB2312, utf-8?
--
--------------------------------------------------------------
做最好的,吃最香的,玩最酷的,开最快的
http://spaces.msn.com/members/kofwang
--------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060118/05d5cad3/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年01月18日 星期三 01:22

Zoom Quiet zoom.quiet at gmail.com
Wed Jan 18 01:22:10 HKT 2006

2006/1/18, 李寻欢晕菜了 <zhang.xiaoye at gmail.com>:
>
> 有一个文本,如何用python取得它的编码格式?如GB2312, utf-8?
KAO!还不睡哪!

http://blog.zoomquiet.org/pyblosxom/Techic/py4zh/zh2utf8.phtm

http://groups.google.com/group/python-cn/browse_frm/thread/3544d5a05783dc96

http://blog.donews.com/limodou/archive/2004/04/13/12002.aspx

久已有之的问题…………呜乎哀哉!

看来一定要总结到一个固定的地方

> --
> --------------------------------------------------------------
> 做最好的,吃最香的,玩最酷的,开最快的
> http://spaces.msn.com/members/kofwang
> --------------------------------------------------------------
> _______________________________________________
> 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
>
>


--
"""Time is unimportant, only life important!
my blog:  http://blog.zoomquiet.org/
my wiki:   http://wiki.woodpecker.org.cn/moin/ZoomQuiet
my book:  http://www.douban.com/group/zoomquiet/
"""

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年01月18日 星期三 01:24

李寻欢晕菜了 zhang.xiaoye at gmail.com
Wed Jan 18 01:24:17 HKT 2006

哈哈,没睡呢,你不是也没睡,深夜有朋友相助,人生一大快事!

On 1/18/06, Zoom Quiet <zoom.quiet at gmail.com> wrote:
>
> 2006/1/18, 李寻欢晕菜了 <zhang.xiaoye at gmail.com>:
> >
> > 有一个文本,如何用python取得它的编码格式?如GB2312, utf-8?
> KAO!还不睡哪!
>
> http://blog.zoomquiet.org/pyblosxom/Techic/py4zh/zh2utf8.phtm
>
>
> http://groups.google.com/group/python-cn/browse_frm/thread/3544d5a05783dc96
>
> http://blog.donews.com/limodou/archive/2004/04/13/12002.aspx
>
> 久已有之的问题…………呜乎哀哉!
>
> 看来一定要总结到一个固定的地方
>
> > --
> > --------------------------------------------------------------
> > 做最好的,吃最香的,玩最酷的,开最快的
> > http://spaces.msn.com/members/kofwang
> > --------------------------------------------------------------
> > _______________________________________________
> > 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
> >
> >
>
>
> --
> """Time is unimportant, only life important!
> my blog:  http://blog.zoomquiet.org/
> my wiki:   http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> my book:  http://www.douban.com/group/zoomquiet/
> """
>
> _______________________________________________
> 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://spaces.msn.com/members/kofwang
--------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060118/cdce8ef7/attachment-0001.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年01月18日 星期三 01:27

清风 paradise.qingfeng at gmail.com
Wed Jan 18 01:27:25 HKT 2006

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52257


On 1/18/06, 李寻欢晕菜了 <zhang.xiaoye at gmail.com> wrote:
> 哈哈,没睡呢,你不是也没睡,深夜有朋友相助,人生一大快事!
>
>
> On 1/18/06, Zoom Quiet <zoom.quiet at gmail.com> wrote:
> > 2006/1/18, 李寻欢晕菜了 <zhang.xiaoye at gmail.com>:
> > >
> > > 有一个文本,如何用python取得它的编码格式?如GB2312, utf-8?
> > KAO!还不睡哪!
> >
> >
> http://blog.zoomquiet.org/pyblosxom/Techic/py4zh/zh2utf8.phtm
> >
> >
> http://groups.google.com/group/python-cn/browse_frm/thread/3544d5a05783dc96
> >
> >
> http://blog.donews.com/limodou/archive/2004/04/13/12002.aspx
> >
> > 久已有之的问题…………呜乎哀哉!
> >
> > 看来一定要总结到一个固定的地方
> >
> > > --
> > >
> --------------------------------------------------------------
> > > 做最好的,吃最香的,玩最酷的,开最快的
> > > http://spaces.msn.com/members/kofwang
> > >
> --------------------------------------------------------------
> > > _______________________________________________
> > > 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
> > >
> > >
> >
> >
> > --
> > """Time is unimportant, only life important!
> > my blog:  http://blog.zoomquiet.org/
> > my wiki:   http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> > my book:  http://www.douban.com/group/zoomquiet/
> > """
> >
> > _______________________________________________
> > 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://spaces.msn.com/members/kofwang
> --------------------------------------------------------------
> _______________________________________________
> 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
>
>


--
Blog:http://qingfeng.ushared.com/blog/

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年01月18日 星期三 01:40

Zoom Quiet zoom.quiet at gmail.com
Wed Jan 18 01:40:04 HKT 2006

在 06-1-18,清风<paradise.qingfeng at gmail.com> 写道:
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52257
>
great!收了!
http://blog.zoomquiet.org/pyblosxom/Techic/py4zh/autoDetectXMLEncoding.phtm
>
> On 1/18/06, 李寻欢晕菜了 <zhang.xiaoye at gmail.com> wrote:
> > 哈哈,没睡呢,你不是也没睡,深夜有朋友相助,人生一大快事!
> >
> >
> > On 1/18/06, Zoom Quiet <zoom.quiet at gmail.com> wrote:
> > > 2006/1/18, 李寻欢晕菜了 <zhang.xiaoye at gmail.com>:
> > > >
> > > > 有一个文本,如何用python取得它的编码格式?如GB2312, utf-8?
> > > KAO!还不睡哪!
> > >
> > >
> > http://blog.zoomquiet.org/pyblosxom/Techic/py4zh/zh2utf8.phtm
> > >
> > >
> > http://groups.google.com/group/python-cn/browse_frm/thread/3544d5a05783dc96
> > >
> > >
> > http://blog.donews.com/limodou/archive/2004/04/13/12002.aspx
> > >
> > > 久已有之的问题…………呜乎哀哉!
> > >
> > > 看来一定要总结到一个固定的地方
> > >
> > > > --
> > > >
> > --------------------------------------------------------------
> > > > 做最好的,吃最香的,玩最酷的,开最快的
> > > > http://spaces.msn.com/members/kofwang
> > > >
> > --------------------------------------------------------------
> > > > _______________________________________________
> > > > 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
> > > >
> > > >
> > >
> > >
> > > --
> > > """Time is unimportant, only life important!
> > > my blog:  http://blog.zoomquiet.org/
> > > my wiki:   http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> > > my book:  http://www.douban.com/group/zoomquiet/
> > > """
> > >
> > > _______________________________________________
> > > 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://spaces.msn.com/members/kofwang
> > --------------------------------------------------------------
> > _______________________________________________
> > 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
> >
> >
>
>
> --
> Blog:http://qingfeng.ushared.com/blog/
>
> _______________________________________________
> 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
>
>


--
"""Time is unimportant, only life important!
my blog:  http://blog.zoomquiet.org/
my wiki:   http://wiki.woodpecker.org.cn/moin/ZoomQuiet
my book:  http://www.douban.com/group/zoomquiet/
"""

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年01月18日 星期三 01:42

李寻欢晕菜了 zhang.xiaoye at gmail.com
Wed Jan 18 01:42:59 HKT 2006

收到哪了?共享一下兄弟们的del.icio.us阿
del.icio.us/kofwang/  我的。。

On 1/18/06, Zoom Quiet <zoom.quiet at gmail.com> wrote:
>
> 在 06-1-18,清风<paradise.qingfeng at gmail.com> 写道:
> > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52257
> >
> great!收了!
>
> http://blog.zoomquiet.org/pyblosxom/Techic/py4zh/autoDetectXMLEncoding.phtm
> >
> > On 1/18/06, 李寻欢晕菜了 <zhang.xiaoye at gmail.com> wrote:
> > > 哈哈,没睡呢,你不是也没睡,深夜有朋友相助,人生一大快事!
> > >
> > >
> > > On 1/18/06, Zoom Quiet <zoom.quiet at gmail.com> wrote:
> > > > 2006/1/18, 李寻欢晕菜了 <zhang.xiaoye at gmail.com>:
> > > > >
> > > > > 有一个文本,如何用python取得它的编码格式?如GB2312, utf-8?
> > > > KAO!还不睡哪!
> > > >
> > > >
> > > http://blog.zoomquiet.org/pyblosxom/Techic/py4zh/zh2utf8.phtm
> > > >
> > > >
> > >
> http://groups.google.com/group/python-cn/browse_frm/thread/3544d5a05783dc96
> > > >
> > > >
> > > http://blog.donews.com/limodou/archive/2004/04/13/12002.aspx
> > > >
> > > > 久已有之的问题…………呜乎哀哉!
> > > >
> > > > 看来一定要总结到一个固定的地方
> > > >
> > > > > --
> > > > >
> > > --------------------------------------------------------------
> > > > > 做最好的,吃最香的,玩最酷的,开最快的
> > > > > http://spaces.msn.com/members/kofwang
> > > > >
> > > --------------------------------------------------------------
> > > > > _______________________________________________
> > > > > 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
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > """Time is unimportant, only life important!
> > > > my blog:  http://blog.zoomquiet.org/
> > > > my wiki:   http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> > > > my book:  http://www.douban.com/group/zoomquiet/
> > > > """
> > > >
> > > > _______________________________________________
> > > > 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://spaces.msn.com/members/kofwang
> > > --------------------------------------------------------------
> > > _______________________________________________
> > > 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
> > >
> > >
> >
> >
> > --
> > Blog:http://qingfeng.ushared.com/blog/
> >
> > _______________________________________________
> > 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
> >
> >
>
>
> --
> """Time is unimportant, only life important!
> my blog:  http://blog.zoomquiet.org/
> my wiki:   http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> my book:  http://www.douban.com/group/zoomquiet/
> """
>
> _______________________________________________
> 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://spaces.msn.com/members/kofwang
--------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060118/e432f1a0/attachment-0001.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年01月18日 星期三 10:18

清风 paradise.qingfeng at gmail.com
Wed Jan 18 10:18:55 HKT 2006

http://del.icio.us/qingfeng
我的

On 1/18/06, 李寻欢晕菜了 <zhang.xiaoye at gmail.com> wrote:
> 收到哪了?共享一下兄弟们的del.icio.us阿
> del.icio.us/kofwang/  我的。。
>
>
> On 1/18/06, Zoom Quiet < zoom.quiet at gmail.com> wrote:
> >
> > 在 06-1-18,清风< paradise.qingfeng at gmail.com> 写道:
> > >
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52257
> > >
> > great!收了!
> >
> http://blog.zoomquiet.org/pyblosxom/Techic/py4zh/autoDetectXMLEncoding.phtm
> > >
> > > On 1/18/06, 李寻欢晕菜了 <zhang.xiaoye at gmail.com> wrote:
> > > > 哈哈,没睡呢,你不是也没睡,深夜有朋友相助,人生一大快事!
> > > >
> > > >
> > > > On 1/18/06, Zoom Quiet <zoom.quiet at gmail.com> wrote:
> > > > > 2006/1/18, 李寻欢晕菜了 < zhang.xiaoye at gmail.com>:
> > > > > >
> > > > > > 有一个文本,如何用python取得它的编码格式?如GB2312, utf-8?
> > > > > KAO!还不睡哪!
> > > > >
> > > > >
> > > >
> http://blog.zoomquiet.org/pyblosxom/Techic/py4zh/zh2utf8.phtm
> > > > >
> > > > >
> > > >
> http://groups.google.com/group/python-cn/browse_frm/thread/3544d5a05783dc96
> > > > >
> > > > >
> > > >
> http://blog.donews.com/limodou/archive/2004/04/13/12002.aspx
> > > > >
> > > > > 久已有之的问题…………呜乎哀哉!
> > > > >
> > > > > 看来一定要总结到一个固定的地方
> > > > >
> > > > > > --
> > > > > >
> > > >
> --------------------------------------------------------------
> > > > > > 做最好的,吃最香的,玩最酷的,开最快的
> > > > > > http://spaces.msn.com/members/kofwang
> > > > > >
> > > >
> --------------------------------------------------------------
> > > > > > _______________________________________________
> > > > > > 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
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > """Time is unimportant, only life important!
> > > > > my blog:   http://blog.zoomquiet.org/
> > > > > my wiki:
> http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> > > > > my book:   http://www.douban.com/group/zoomquiet/
> > > > > """
> > > > >
> > > > > _______________________________________________
> > > > > 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://spaces.msn.com/members/kofwang
> > > >
> --------------------------------------------------------------
> > > > _______________________________________________
> > > > 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
> > > >
> > > >
> > >
> > >
> > > --
> > > Blog:http://qingfeng.ushared.com/blog/
> > >
> > > _______________________________________________
> > > 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
> > >
> > >
> >
> >
> > --
> > """Time is unimportant, only life important!
> > my blog:  http://blog.zoomquiet.org/
> > my wiki:   http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> > my book:  http://www.douban.com/group/zoomquiet/
> > """
> >
> > _______________________________________________
> > 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://spaces.msn.com/members/kofwang
> --------------------------------------------------------------
> _______________________________________________
> 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
>
>


--
Blog:http://qingfeng.ushared.com/blog/

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号