Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDU识别短信的BUG(乱码情况) #12

Open
GoogleCodeExporter opened this issue Apr 4, 2015 · 1 comment
Open

PDU识别短信的BUG(乱码情况) #12

GoogleCodeExporter opened this issue Apr 4, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

有时3G的手机发过来的短信的DCS编码是19,这时实际上是UCS2编
码,但现在的代码无法识别,因为只认为编码=08的才是UCS2,�
��以乱码了。

修改以下的代码就OK啦。

//if (dataCodingScheme.Substring(1, 1) == "8")             //USC2编码
if (dataCodingScheme.Substring(1, 1) == "8" || dataCodingScheme.Substring(1, 1) 
== "9")  

这个地方困扰我一天了,嘿嘿,终于解决了。

请PM老兄考虑下个版本修改这个问题哦。

Original issue reported on code.google.com by pinghua....@gmail.com on 1 Oct 2011 at 1:45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant