Python论坛  - 讨论区

标题:[python-chinese] 如何发送中文啊

2006年10月01日 星期日 00:20

Eric CHAO lionchao在gmail.com
星期日 十月 1 00:20:41 HKT 2006

¦¸§µ×œ¡× omõØéýÿ}?Ó§¶Ëkyë`jg¶	šŠW(›
èµêkŠ{RÊ{ZÄJ뢳hœ‚ ‡!j¶œµêñsˆ§~)^²‡$z۝Úr¶'r§zǏ¢ËlzwiÊØhÈbë–+-²œ­†‰Ü+›±ÊâmëÛ.nÇ+‰·­¢œ­†‰Ü†)Þ±êު笶X¬¶Êr¶'ru'²æìr¸›zǧvéì¹»®&Þ¶Šr¶'r§zÇ«z«ž²Ùb²Û)ÊØhÉÃzÖ¢”‰ß¢m§ÿéÊØhÉÿ™¨¥™©ÿ–+-Šwèþœ­†‰Ü†)Þ±éÞÆÚZ®Ú«šošÃ8f‹9fã

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

2006年10月01日 星期日 00:22

Young fivesheep在gmail.com
星期日 十月 1 00:22:50 HKT 2006

文件头加句:
# -*- coding: gb2312 -*-

On 10/1/06, Eric CHAO <lionchao在gmail.com> wrote:
> print '中文'.decode('gb2312')
>
>
> On 9/30/06, cat street <gamcat在gmail.com> wrote:
> >
> >
> > 我在模块中写
> > print '你好'
> > 就会报错:SyntaxError: Non-ASCII character '\xc4' in file ...
> > 我是想用在socket.send ()中.
> > _______________________________________________
> > 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
>

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

2006年10月01日 星期日 13:47

cat street gamcat在gmail.com
星期日 十月 1 13:47:13 HKT 2006

лл,pythonÕæÊÇÉñÆæ°¡~

2006/10/1, Young <fivesheep在gmail.com>:
>
> ÎļþÍ·¼Ó¾ä:
> # -*- coding: gb2312 -*-
>
> On 10/1/06, Eric CHAO <lionchao在gmail.com> wrote:
> > print 'ÖÐÎÄ'.decode('gb2312')
> >
> >
> > On 9/30/06, cat street <gamcat在gmail.com> wrote:
> > >
> > >
> > > ÎÒÔÚÄ£¿éÖÐд
> > > print 'ÄãºÃ'
> > > ¾Í»á±¨´í:SyntaxError: Non-ASCII character '\xc4' in file ...
> > > ÎÒÊÇÏëÓÃÔÚsocket.send ()ÖÐ.
> > > _______________________________________________
> > > 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/20061001/644cc64a/attachment.html 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号