Failed to receive SMS in Chinese characters | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through October 31, 2007 ⬆ |
◄ ► |
Author | Message | |||
Laker Shen New member Username: Lakershen Post Number: 1 Registered: 06-2007 |
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 |
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 |