Monday, April 7, 2014

adb commands to send text messages garbled


adb shell am start-a android.intent.action.SENDTO-d sms: 13632471030 - es sms_body "SMS test content" - ez exit_on_sent true
adb shell input keyevent 22
adb shell input keyevent 66
Call the method as described above, the content in the windows to connect the phone to call in the Chinese mobile phone is garbled? In addition the following two lines are analog transmission button on my 2.2 version can, in 2.3.3 on no response.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
I wish you all a happy National Day! ! !
Reply:
Android is used in UTF-8 characters, and CMD default character set is ANSI, the Chinese environment is GBK, code page 936. Query the current code page is under way CMD direct input "chcp" command, and will return to "active code page: 936" words.

Just use UTF-8 format code page 65001 on OK, the command is as follows:
chcp 65001

However, in the window still does not display UTF-8 characters correctly.
Modify the properties window, change the font. Right-click the title bar at the command line, select "Properties" -> "Fonts", change the font to True Type font "Lucida Console", and then click OK to attribute to the current window.

No comments:

Post a Comment