Python论坛  - 讨论区

标题:[python-chinese] 问一个编码的问题

2007年03月02日 星期五 11:49

pt42 pt4200在gmail.com
星期五 三月 2 11:49:56 HKT 2007

ÄãºÃ£º


ÏëÇë½Ìһϣ¬ÎÒÏÖÔÚ´ÓÒ»¸öHTMLÎļþ»ñµÃÁËÒ»¸ö×Ö·û´®£¬Èç±äÁ¿sss="\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"¡£

       ÎÒÖªµÀ¿ÉÒÔÓÃprint u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"·½Ê½´òÓ¡³öÀ´
       µ«ÏÖÔÚÈçºÎת»»Õâ¸ö±äÁ¿ÄØ£¿
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070302/62a652db/attachment.html 

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

2007年03月02日 星期五 12:54

junyi sun ccnusjy在gmail.com
星期五 三月 2 12:54:09 HKT 2007

>>> print sss.encode('gbk')
ijÌ죬ÓëºÃÓÑÉϽÖ

On 3/2/07, pt42 <pt4200在gmail.com> wrote:
>
> ÄãºÃ£º
>
>
> ÏëÇë½Ìһϣ¬ÎÒÏÖÔÚ´ÓÒ»¸öHTMLÎļþ»ñµÃÁËÒ»¸ö×Ö·û´®£¬Èç±äÁ¿sss="\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"¡£
>
>        ÎÒÖªµÀ¿ÉÒÔÓÃprint
> u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"·½Ê½´òÓ¡³öÀ´
>        µ«ÏÖÔÚÈçºÎת»»Õâ¸ö±äÁ¿ÄØ£¿
>
> _______________________________________________
> 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/20070302/2b31c235/attachment-0001.html 

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

2007年03月02日 星期五 13:00

pt42 pt4200在gmail.com
星期五 三月 2 13:00:38 HKT 2007

Èç¹ûsss=u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"£¬ÄǾÍÕý³£ÁË
±ØÐëÔÚ×Ö·û´®Ç°Ãæ¼Ó¸öU£¬±íÃ÷ÊÇunicode×Ö·û´®

¿ÉÏÖÔÚÕâ¸ö×Ö·û´®ÊÇ´ÓÎļþÖжÁ³öÀ´µÄ£¬ÔõôÔÚ±äÁ¿Ç°¼ÓUÄØ£¿


ÔÚ07-3-2£¬junyi sun <ccnusjy在gmail.com> дµÀ£º
>
> >>> print sss.encode('gbk')
> ijÌ죬ÓëºÃÓÑÉϽÖ
>
>  On 3/2/07, pt42 <pt4200在gmail.com> wrote:
>
> >  ÄãºÃ£º
> >
> >
> > ÏëÇë½Ìһϣ¬ÎÒÏÖÔÚ´ÓÒ»¸öHTMLÎļþ»ñµÃÁËÒ»¸ö×Ö·û´®£¬Èç±äÁ¿sss="\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"¡£
> >
> >        ÎÒÖªµÀ¿ÉÒÔÓÃprint
> > u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"·½Ê½´òÓ¡³öÀ´
> >        µ«ÏÖÔÚÈçºÎת»»Õâ¸ö±äÁ¿ÄØ£¿
> >
> > _______________________________________________
> > 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
> >
>
>
> _______________________________________________
> 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/20070302/7c927fed/attachment.htm 

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

2007年03月02日 星期五 17:00

pt42 pt4200在gmail.com
星期五 三月 2 17:00:24 HKT 2007

¼ÌÐøÇóÖú¡£¡£¡£¡£

ÔÚ07-3-2£¬pt42 <pt4200在gmail.com> дµÀ£º
>
> Èç¹ûsss=u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"£¬ÄǾÍÕý³£ÁË
> ±ØÐëÔÚ×Ö·û´®Ç°Ãæ¼Ó¸öU£¬±íÃ÷ÊÇunicode×Ö·û´®
>
> ¿ÉÏÖÔÚÕâ¸ö×Ö·û´®ÊÇ´ÓÎļþÖжÁ³öÀ´µÄ£¬ÔõôÔÚ±äÁ¿Ç°¼ÓUÄØ£¿
>
>
> ÔÚ07-3-2£¬junyi sun <ccnusjy在gmail.com> дµÀ£º
> >
> > >>> print sss.encode('gbk')
> > ijÌ죬ÓëºÃÓÑÉϽÖ
> >
> >  On 3/2/07, pt42 < pt4200在gmail.com> wrote:
> >
> > >  ÄãºÃ£º
> > >
> > >
> > > ÏëÇë½Ìһϣ¬ÎÒÏÖÔÚ´ÓÒ»¸öHTMLÎļþ»ñµÃÁËÒ»¸ö×Ö·û´®£¬Èç±äÁ¿sss="\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"¡£
> > >
> > >        ÎÒÖªµÀ¿ÉÒÔÓÃprint
> > > u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"·½Ê½´òÓ¡³öÀ´
> > >        µ«ÏÖÔÚÈçºÎת»»Õâ¸ö±äÁ¿ÄØ£¿
> > >
> > > _______________________________________________
> > > 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
> > >
> >
> >
> > _______________________________________________
> > 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/20070302/82024599/attachment.html 

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

2007年03月02日 星期五 19:32

稳国柱 guozhuwen在gmail.com
星期五 三月 2 19:32:37 HKT 2007

¶þÂ¥µÄ²»ÊÇÒѾ­Ð´ÁËÂð
Ö±½Ó print sss.encode('gbk')



ÔÚ07-3-2£¬pt42 <pt4200在gmail.com> дµÀ£º
>
> ¼ÌÐøÇóÖú¡£¡£¡£¡£
>
> ÔÚ07-3-2£¬pt42 <pt4200在gmail.com> дµÀ£º
> >
> > Èç¹ûsss=u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"£¬ÄǾÍÕý³£ÁË
> > ±ØÐëÔÚ×Ö·û´®Ç°Ãæ¼Ó¸öU£¬±íÃ÷ÊÇunicode×Ö·û´®
> >
> > ¿ÉÏÖÔÚÕâ¸ö×Ö·û´®ÊÇ´ÓÎļþÖжÁ³öÀ´µÄ£¬ÔõôÔÚ±äÁ¿Ç°¼ÓUÄØ£¿
> >
> >
> > ÔÚ07-3-2£¬junyi sun <ccnusjy在gmail.com> дµÀ£º
> > >
> > > >>> print sss.encode('gbk')
> > > ijÌ죬ÓëºÃÓÑÉϽÖ
> > >
> > >  On 3/2/07, pt42 < pt4200在gmail.com> wrote:
> > >
> > > >  ÄãºÃ£º
> > > >
> > > >
> > > > ÏëÇë½Ìһϣ¬ÎÒÏÖÔÚ´ÓÒ»¸öHTMLÎļþ»ñµÃÁËÒ»¸ö×Ö·û´®£¬Èç±äÁ¿sss="\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"¡£
> > > >
> > > >        ÎÒÖªµÀ¿ÉÒÔÓÃprint
> > > > u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"·½Ê½´òÓ¡³öÀ´
> > > >        µ«ÏÖÔÚÈçºÎת»»Õâ¸ö±äÁ¿ÄØ£¿
> > > >
> > > > _______________________________________________
> > > > 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
> > > >
> > >
> > >
> > > _______________________________________________
> > > 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
> > >
> >
> >
>
> _______________________________________________
> 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/20070302/42a4472d/attachment-0001.html 

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

2007年03月02日 星期五 19:51

liokm liokmkoil在gmail.com
星期五 三月 2 19:51:48 HKT 2007

×Ö·û´®²»»áÓÐ\uµÄ,ÒªÓÐÒ²Ö»ÄÜÊÇ\\u,¿´À´Â¥Ö÷µÄÎļþÄÚÈÝÊÇ\\u67D0...¾ÍÏñHTMLʵÌå<,
Èç¹ûÕâÑù¾Í¿ÉÒÔ°ÑÖîÈç0x67D0ÓÃunichr»òunicode´¦ÀíµÃµ½ÕæÕýµÄUnicode¶ÔÏó.


ÔÚ07-3-2£¬pt42 <pt4200在gmail.com> дµÀ£º
>
> Èç¹ûsss=u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"£¬ÄǾÍÕý³£ÁË
> ±ØÐëÔÚ×Ö·û´®Ç°Ãæ¼Ó¸öU£¬±íÃ÷ÊÇunicode×Ö·û´®
>
> ¿ÉÏÖÔÚÕâ¸ö×Ö·û´®ÊÇ´ÓÎļþÖжÁ³öÀ´µÄ£¬ÔõôÔÚ±äÁ¿Ç°¼ÓUÄØ£¿
>
>
> ÔÚ07-3-2£¬junyi sun <ccnusjy在gmail.com> дµÀ£º
> >
> > >>> print sss.encode('gbk')
> > ijÌ죬ÓëºÃÓÑÉϽÖ
> >
> >  On 3/2/07, pt42 < pt4200在gmail.com> wrote:
> >
> > >  ÄãºÃ£º
> > >
> > >
> > > ÏëÇë½Ìһϣ¬ÎÒÏÖÔÚ´ÓÒ»¸öHTMLÎļþ»ñµÃÁËÒ»¸ö×Ö·û´®£¬Èç±äÁ¿sss="\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"¡£
> > >
> > >        ÎÒÖªµÀ¿ÉÒÔÓÃprint
> > > u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"·½Ê½´òÓ¡³öÀ´
> > >        µ«ÏÖÔÚÈçºÎת»»Õâ¸ö±äÁ¿ÄØ£¿
> > >
> > > _______________________________________________
> > > 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
> > >
> >
> >
> > _______________________________________________
> > 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
> >
>
>
> _______________________________________________
> 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/20070302/c78af9c3/attachment.htm 

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

2007年03月03日 星期六 14:17

pt42 pt4200在gmail.com
星期六 三月 3 14:17:06 HKT 2007

лл*liokm£¬ÒѾ­¸ã¶¨*

֮ǰ¶¼²»ÖªµÀÓÐunichrÕâ¸öÃüÁî



ÔÚ07-3-2£¬liokm <liokmkoil在gmail.com> дµÀ£º
>
> ×Ö·û´®²»»áÓÐ\uµÄ,ÒªÓÐÒ²Ö»ÄÜÊÇ\\u,¿´À´Â¥Ö÷µÄÎļþÄÚÈÝÊÇ\\u67D0...¾ÍÏñHTMLʵÌå<,
> Èç¹ûÕâÑù¾Í¿ÉÒÔ°ÑÖîÈç0x67D0ÓÃunichr»òunicode´¦ÀíµÃµ½ÕæÕýµÄUnicode¶ÔÏó.
>
>
> ÔÚ07-3-2£¬pt42 <pt4200在gmail.com> дµÀ£º
> >
> >  Èç¹ûsss=u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"£¬ÄǾÍÕý³£ÁË
> > ±ØÐëÔÚ×Ö·û´®Ç°Ãæ¼Ó¸öU£¬±íÃ÷ÊÇunicode×Ö·û´®
> >
> > ¿ÉÏÖÔÚÕâ¸ö×Ö·û´®ÊÇ´ÓÎļþÖжÁ³öÀ´µÄ£¬ÔõôÔÚ±äÁ¿Ç°¼ÓUÄØ£¿
> >
> >
> > ÔÚ07-3-2£¬junyi sun <ccnusjy在gmail.com> дµÀ£º
> > >
> > > >>> print sss.encode('gbk')
> > > ijÌ죬ÓëºÃÓÑÉϽÖ
> > >
> > >  On 3/2/07, pt42 < pt4200在gmail.com> wrote:
> > >
> > > >  ÄãºÃ£º
> > > >
> > > >
> > > > ÏëÇë½Ìһϣ¬ÎÒÏÖÔÚ´ÓÒ»¸öHTMLÎļþ»ñµÃÁËÒ»¸ö×Ö·û´®£¬Èç±äÁ¿sss="\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"¡£
> > > >
> > > >        ÎÒÖªµÀ¿ÉÒÔÓÃprint
> > > > u"\u67D0\u5929\uFF0C\u4E0E\u597D\u53CB\u4E0A\u8857"·½Ê½´òÓ¡³öÀ´
> > > >        µ«ÏÖÔÚÈçºÎת»»Õâ¸ö±äÁ¿ÄØ£¿
> > > >
> > > > _______________________________________________
> > > > 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
> > > >
> > >
> > >
> > > _______________________________________________
> > > 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
> > >
> >
> >
> > _______________________________________________
> > 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
> >
>
>
> _______________________________________________
> 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/20070303/8de4146f/attachment.htm 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号