質問

I'm sending a sms to the emulator (using netcat localhost 5554).

If the message contains only ASCII-characters, it is received correctly.

 sms send +49123456789 This is fine.

But if I use non-ascii chars (which I need for some German chars), the SMS sent with

sms send +49123456789 Das ist ärgerlich. This is annoying.

is displayed on the Android device in Chinese (?) chars (䠀䐀愀猀 椀猀琀 ̀爀最攀爀氀椀挀栀⸀ 吀栀椀猀 椀猀 愀渀渀漀礀椀渀最).

Language and layout on the device are German. Any suggestions how Unicode-SMS can be displayed in right way?

役に立ちましたか?

解決

Problem solved, non-ascii chars may be replaced by their unicode representation.

 sms send +49123456789 Das ist \u00E4rgerlich. This is annoying.

This will be received and displayed in the correct way.

他のヒント

That is not Unicode message ä is supported in gsm7 encoding and you can encode it like: 7B. If you use HTTP encode it like %7B.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top