2005年07月10日 星期日 22:52
这几天试着使用Python来写GSM手机的短信收发程序,对于发送英文的已经使用7bit方式实现了,但是这个对中文短信和中英文混合的无法使用,不知 道哪位大侠遇到过这方面的问题,具体的解决思路是什么?由于是Python,不能使用Win32的API:MultiByteToWideChar(), 哪位有Python的实现思路,帮帮忙。 -- My Blog >> http://leejd.cndev.org My QQ >> 9847243 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050710/d823693a/attachment.htm
2005年07月10日 星期日 23:08
没有接触过这方面,但是要调用win32的api吗?可以尝试python的win32调用模块 2005/7/10, Gerald Lee <leejd80 at gmail.com>: > 这几天试着使用Python来写GSM手机的短信收发程序,对于发送英文的已经使用7bit方式实现了,但是这个对中文短信和中英文混合的无法使用,不知 > 道哪位大侠遇到过这方面的问题,具体的解决思路是什么?由于是Python,不能使用Win32的API:MultiByteToWideChar(), > 哪位有Python的实现思路,帮帮忙。 > > > -- > My Blog >> http://leejd.cndev.org > My QQ >> 9847243 > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > > -- Blog:http://www.donews.net/changzheng
2005年07月10日 星期日 23:27
我不单单在windows下面做,想在别的系统下面也可以使用。所以不能使用OS的API。 在05-7-10,清风 <paradise.qingfeng at gmail.com> 写道: > > 没有接触过这方面,但是要调用win32的api吗?可以尝试python的win32调用模块 > > > > -- > Blog:http://www.donews.net/changzheng > -- My Blog >> http://leejd.cndev.org My QQ >> 9847243 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050710/b3f99679/attachment.html
2005年07月10日 星期日 23:55
Gerald Lee wrote: > 这几天试着使用Python来写GSM手机的短信收发程序,对于发送英文的已经使用 > 7bit方式实现了,但是这个对中文短信和中英文混合的无法使用,不知道哪位大 > 侠遇到过这方面的问题,具体的解决思路是什么?由于是Python,不能使用 > Win32的API:MultiByteToWideChar(),哪位有Python的实现思路,帮帮忙。 google: 短信 编码 找到如下网站: http://www.mcuchina.com/Article/Interface/COM/COMPRG/200411/83.html 其它搜索没有找到更好的资料。
2005年07月11日 星期一 09:34
你遇到的应该是内码的编码解码的问题,你可以这样做。
test='中国人'
print test.decode('cp936').encode("utf-16")
在 05-7-10,cpunion<cpunion at 263.net> 写道:
> Gerald Lee wrote:
>
> > 这几天试着使用Python来写GSM手机的短信收发程序,对于发送英文的已经使用
> > 7bit方式实现了,但是这个对中文短信和中英文混合的无法使用,不知道哪位大
> > 侠遇到过这方面的问题,具体的解决思路是什么?由于是Python,不能使用
> > Win32的API:MultiByteToWideChar(),哪位有Python的实现思路,帮帮忙。
>
> google: 短信 编码
> 找到如下网站:
> http://www.mcuchina.com/Article/Interface/COM/COMPRG/200411/83.html
>
> 其它搜索没有找到更好的资料。
>
>
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>
--
梅劲松
2005年07月11日 星期一 18:30
Hello
我曾经写过,不过程序丢了。是纯Python的,就是一个编码转换。
You wrote to <python-chinese at lists.python.cn> on Mon, 11 Jul 2005 09:34:09 +0800:
梅> 在 05-7-10,cpunion<cpunion at 263.net> 写道:
??>> Gerald Lee wrote: >
??>>> 这几天试着使用Python来写GSM手机的短信收发程序,对于发送英文的已经使用
??>>> 7bit方式实现了,但是这个对中文短信和中英文混合的无法使用,不知道哪位大
??>>> 侠遇到过这方面的问题,具体的解决思路是什么?由于是Python,不能使用
??>>> Win32的API:MultiByteToWideChar(),哪位有Python的实现思路,帮帮忙。
??>>
??>> google: 短信 编码
??>> 找到如下网站:
??>> http://www.mcuchina.com/Article/Interface/COM/COMPRG/200411/83.html >
??>> 其它搜索没有找到更好的资料。
??>>
??>> _______________________________________________
??>> python-chinese list
??>> python-chinese at lists.python.cn
??>> http://python.cn/mailman/listinfo/python-chinese >
With best regards, 杨城. E-mail: yyangcheng at hotmail.com
Zeuux © 2025
京ICP备05028076号