March 20, 2009 at 3:35 am
· Filed under Smartphone
市面上大部分手机在存储vcard时是使用UTF-8编码(显式声明),而outlook是使用GB2312(未显式声明).
其中nokia能解析显式声明为UTF-8和GB2312的文件,索爱只能解析UTF-8.(在这一点上,nokia的兼容性更好一些)
这导致了使用nokia和索爱的手机产生的vcard文件与outlook互相之间均不兼容.
如果contact在存储时也改为UTF-8编码(显式声明),这样可以保证传给别人的别人能正确识别,但outlook无法识别.
如果contact存储时改为GB2312编码(显式声明),则nokia和outlook能识别,索爱无法识别.
很遗憾,最后决定迁就nokia和索爱,放弃outlook.选择了用UTF-8存储.
另外,contact在解析时支持显示声明为UTF-8和GB2312的,同时将未显式声明的当作GB2312处理.这样可以保证收到别人的我们能正常识别,包括能识别outlook的.尽可能的让兼容性更好.
Permalink
August 13, 2008 at 5:36 am
· Filed under PHP
Permalink
May 9, 2008 at 1:30 am
· Filed under PHP
Permalink
April 22, 2008 at 8:02 pm
· Filed under WEB
Permalink
April 9, 2008 at 3:20 am
· Filed under WEB
Permalink
February 13, 2008 at 9:08 pm
· Filed under PHP
Permalink
November 22, 2007 at 11:33 pm
· Filed under Linux and Shell
Permalink
November 22, 2007 at 11:26 pm
· Filed under Linux and Shell
Permalink
October 12, 2007 at 9:47 pm
· Filed under Hello, cyndi!
Permalink
September 3, 2007 at 3:34 am
· Filed under SCM
Permalink