Failed to receive SMS in Chinese characters

Failed to receive SMS in Chinese characters SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through October 31, 2007 » Failed to receive SMS in Chinese characters « Previous || Next »
Author Message
Laker Shen
New member
Username: Lakershen

Post Number: 1
Registered: 06-2007
Posted on Friday, June 29, 2007 - 06:57 pm:   

Hi, I am having problem to receive SMS in Chinese characters. The 2-way character encoding is "utf-8". In my servlet java code, I also set the right character encoding:
req.setCharacterEncoding("utf-8");

However, data end up to be messed up. Please help.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7360
Registered: 10-2002
Posted on Wednesday, July 11, 2007 - 07:32 pm:   

I'm not an expert in Java, but it sounds like you are doing things correctly. Call setCharacterEncoding before calling getParameter, and it should work.

But searching the net, I see a variety of discussion on this, including claims that if you are using Tomcat, that the setCharacterEncoding method is ignored. That bug might have been fixed by now.

Basically I'd encourage you to do some internet searching on setCharacterEncoding, getParameter and UTF-8 ... and hopefully that will point you in the right direction.

You can also try changing the 2-way character set in NowSMS to the language that you are working in.

-bn

Login Login / Register Logout Logout Search Last 30 Days Topics Topics