Android, using JSON to send data, using the Java escape character Kankan original

Source: Internet
Author: User
Tags control characters
<span id="Label3"></p><p><p>Kankan Original</p></p><p><p>When sending data to and from the PHP background. This format is Required.</p></p><p><p><br></p></p><p><p>private void Sendjson () {<span style="white-space:pre"> </span></p></p><p><p>Initialize the handler of your own definition</p></p><p><p><span style="white-space:pre"></span>Cashhandler handler = new Cashhandler (this);<br><br>Request a primary Address. Written in your own definition application, followed by the interface Name.<br><span style="white-space:pre"></span>String url = mapplication.get (). getappserviceurl () + "order/submit";<br><br>The Send request method that you define<br><span style="white-space:pre"></span>lreqentity entity = new Lreqentity ();<br><span style="white-space:pre"></span>Entity.seturl (url);<br>lreqentity, The Post Method. The format of the number of passes is map (string,string)</p></p><p><p><span style="white-space:pre"></span>map<string, string> map = new hashmap<string, string> ();</p></p><p><p>Stitching strings</p></p><span style="white-space:pre"><span style="white-space:pre"></span></span>StringBuffer params = new StringBuffer ();<br><span style="white-space:pre"><span style="white-space:pre"></span></span>Jumpkey is 7 from the Point Mall and is purchased from the Point Mall<br><p><p><span style="white-space:pre"></span>If (jumpkey.equals ("7")) {</p></p><p><p>Dbmanager is its own definition of database query methods. The enquiry is the purchase order of the shopping cart finally</p></p><span style="white-space:pre"><span style="white-space:pre"></span></span>list<carteentity> cartlist = Dbmanager.get (). Queryfinalcarte (<br><p><p><span style="white-space:pre"></span>userentity.id);</p></p><p><p>Stitching strings</p></p><span style="white-space:pre"><span style="white-space:pre"></span></span>Params.append ("[");<br><span style="white-space:pre"><span style="white-space:pre"></span></span>for (int i = 0; i < cartlist.size (); I++) {<br><span style="white-space:pre"><span style="white-space:pre"></span></span>Carteentity scoreentity = new Carteentity ();<br><p><p><span style="white-space:pre"></span>scoreentity = Cartlist.get (i);</p></p><p><p>The next line is the escape character. In order to send the time, splicing out "this character, with the escape character \"</p></p><p><p>This sends the result {"A": 54}</p></p><span style="white-space:pre"><span style="white-space:pre"></span></span>Params.append ("{\" a\ ":");<br><span style="white-space:pre"><span style="white-space:pre"></span></span>Params.append (scoreentity.id + "");<br><span style="white-space:pre"><span style="white-space:pre"></span></span>Params.append (",");<br><span style="white-space:pre"><span style="white-space:pre"></span></span>Params.append ("\" b\ ":");<br><span style="white-space:pre"><span style="white-space:pre"></span></span>Params.append (scoreentity.buycount);<br><span style="white-space:pre"><span style="white-space:pre"></span></span>Params.append (",");<br><span style="white-space:pre"><span style="white-space:pre"></span></span>Params.append ("\" c\ ":");<br><span style="white-space:pre"><span style="white-space:pre"></span></span>Params.append ("\" score\ "}");<br><span style="white-space:pre"><span style="white-space:pre"></span></span>If (i < cartlist.size ()-1) {<br><span style="white-space:pre"><span style="white-space:pre"></span></span>Params.append (",");<br><span style="white-space:pre"><span style="white-space:pre"></span></span>}<br><span style="white-space:pre"><span style="white-space:pre"></span></span>}<br><br><br><span style="white-space:pre"><span style="white-space:pre"></span></span>Params.append ("]");<br><p><p><span style="white-space:pre"></span>}</p></p><p><p><span style="white-space:pre"></span>Entity.setparams (map);<br><span style="white-space:pre"></span>Entity.setreqmode (reqmothed.post);<br><br><br><span style="white-space:pre"></span>Handler.startloadingdata (entity);<br></p></p><p><p><br></p></p><p><p>}</p></p><p><p><br></p></p><p><p>In this way, the effect of stitching requirements is achieved. http://192.168.100.180:85/service/order/submit? {a=[{"a": up, "b": 3, "c": "score"},{"a":, "b": 3, "c": "score"}], b=89}<br></p></p><p><p><br></p></p><p><p>There are a lot of things about escape characters.</p></p><p><p><br></p></p><p><p></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">Java Transit literal characters:</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; Color:rgb (69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; LINE-HEIGHT:21PX "> The most is the first one. </p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; Color:rgb (69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px "><span style=" Color:rgb (69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px ">1. Special Characters: 3   </span> <br style=" Color:rgb (69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px "><span style=" Color:rgb (69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px ">\": double-cited   </span> <br style="color:rgb (69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px "><span style=" Color:rgb (69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px ">\ ': single citation   </span> <br style=" Color:rgb (69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px "><span style=" Color:rgb (69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px ">\\: backslash   </span> <br> </p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><span style="color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><br></span></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><span style="color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><br></span></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><span style="color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><br></span></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">2. Eight binary escape sequence: \ + 1 to 3-bit 5 digits. Range ' \000 ' ~ ' \377 '<br>: null character<br>3.Unicode Escape character: \u + four hexadecimal digits; 0~65535<br>\u0000: NULL character<br><br>4. Control Characters: 5</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">\ ' Single-argument characters</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">\ \ backslash Character</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">\ r Enter</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">\ nthe line break</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">\f Paper Change page</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">\ t transverse jump lattice</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">\b Backspace</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; Color:rgb (69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px "> Point Escape:. ==> u002e  escape of the <br> Dollar Sign: $ ==> u0024  <br> Escape of the symbol: ^ ==> u005e  <br> Escape of the opening brace: {==> u007b  <br> Escape of the left parenthesis: [==> u005b  <br> Escape of the left parenthesis: (==> u0028  <br> Escape of the vertical bar: | ==> u007c  <br> The escape of the right parenthesis:) ==> u0029  <br> Escape of Asterisk: * ==> u002a  <br> Plus escape: + ==> u002b  <br> Escape of question mark:? ==> u003f  <br> Backslash escape: = = > u005c  <br> ======================================================================  <br> The following program uses two Unicode escape characters, which represent Unicode characters in their hexadecimal code. </p></p><p><p>so, What does this program print?<br>Java code<br>public class escaperout{<br>public static void main (string[] Args) {<br>\U0022 is a Unicode escape character with two arguments<br>System.out.println ("a\u0022.length ()<br>+\u0022b ". Length ());<br>}<br>}</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">public class escaperout{<br>public static void main (string[] Args) {<br>\U0022 is a Unicode escape character with two arguments<br>System.out.println ("a\u0022.length ()<br>+\u0022b ". Length ());<br>}<br>}</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><br>A very superficial analysis of the program would feel that it should print out 26, since there is a total of 26 characters between the strings identified by the two double-a\u0022.length () +\u0022b.<br>A little bit deeper analysis will feel that the program should print 16, because two Unicode escape characters each in the source file needs to be represented by 6 Characters. however, they represent only one character in a string. So the string should be 10 characters shorter than it looks. Assuming you execute this program, you will find that it is far from the Case.</p></p><p><p>It prints neither 26 nor 16. But 2.</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">The key to understanding this puzzle is to know that Java does not provide any special handling of Unicode escape characters in string literal constants. The compiler converts the Unicode escape characters into the characters they represent [JLS 3.2] before parsing the program into various Symbols. therefore, the first Unicode escape character in the program is used as the ending argument for a single character string literal constant ("a"). The second Unicode escape character is used as the starting argument for a single character string literal constant ("b").</p></p><p><p>The program prints the expression "a". length () + "b". length (), or 2.</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">Assuming that the Program's author really wants this behavior, the following statements will be much clearer:</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><br>Java code<br>System.out.println ("a". length () + "b". length ());</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">More likely, the author wants to place two double-digit characters inside the string literal constant.</p></p><p><p>You cannot do this with Unicode escape characters, but you can use the escape character sequence to implement [JLS 3.10.6]. The escape character sequence that represents a double-argument is a backslash followed by a double-argument (\ "). Assuming that the Unicode escape character in the original program is replaced with an escape character sequence, it will print the expected 16 (error, which should be 14. Don't know how it's going to come out 16):</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">Java code<br>System.out.println ("a\". length () +\ "b". length ());</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">Many characters have a sequence of escape characters, including a single (\), newline (\ n), tab (\ t), and backslash (\ \). You can use escape character sequences in character literal constants and string literal Constants.</p></p><p><p><br>As a matter of fact. You can place any ASCII character in a string literal constant or a character literal constant by using a special type of escape character sequence called the octal escape character, but it is best to use the normal escape character sequence wherever possible.</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">Both the normal escape character sequence and the octal escape character are much better than the Unicode escape character, and because unlike Unicode escape characters, the escape character sequence is processed after the program has been parsed into various symbols.</p></p><p><p></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">ASCII is the minimum set of common attributes for a character set. It has only 128 characters, but Unicode has more than 65,000 characters. A Unicode escape character can be used to insert a Unicode character in a program that uses only ASCII Characters. A Unicode escape character is precisely equivalent to the character it Represents.</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">The Unicode escape character is designed to be used in cases where a program ape needs to insert a character that cannot be represented in the source file character Set. They are primarily used to place non-ascii characters in identifiers, string literal constants, character literal constants, and Gaze.</p></p><p><p>occasionally, Unicode escape characters are also used to clearly identify one of the several characters that appear to be quite similar. To add clarity to the Program.</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px">In summary, the escape character sequence is preferred in string and character literal Constants. Instead of the Unicode escape character. Unicode escape characters can cause confusion because they are prematurely processed in the compilation Sequence. Do not use Unicode escape characters to represent ASCII Characters.</p></p><p><p>In string and character literal Constants. The escape character sequence should be used, and for cases other than these literal constants, the ASCII characters should be inserted directly into the source File.</p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; Color:rgb (69,69,69); font-family:tahoma,helvetica,arial; font-size:14px; line-height:21px "> <br> escape sequence meaning   <br> \ n Enter (\u000a)   <br> \ t horizontal tab (\u0009)   <br> \b Space (\u0008)   <br> \ r Line break (\u000d)   <br> \f (\u000c)   <br> \ ' single-pin (\u0027)   <br> \ "double-cited (\u0022)   <br> \ \ backslash (\u005c)   <br> \ddd three-bit octal   <br> \udddd four-bit hex   <br> Java brokered character:   <br> 1. Eight binary escape sequence: <br> \ + 1 to 3 bit 5 digits; range ' \000 ' ~ ' \377 '   <br>: null character   <br> 2.Unicode escape character: <br> \u + four hexadecimal digits; 0~65535  <br> \u0000: null character   <br> octal is 1 to 3 numbers and note the range of values, Assuming that the range is too large to compile incorrectly, hexadecimal escapes must be 4 hexadecimal digits. And some can not be escaped, such as ' \u000a '. Cannot be transferred, a compilation error occurs, and quite a number of numbers do not have the corresponding characters, just escaping to the question mark and escaping to the number, only if the range is not greater than the Scope. </p></p><p><p><br>3. Special Characters: 3 ": double-cited": single-quote \ \: Backslash<br>4. Control Character: 5 \ ' single-quote character \ \ backslash character \ r return \ n NewLine \f paper page change \ t horizontal jump lattice \b backspace<br>Escape of Points:. ==> u002e<br>Escape of Dollar Sign: $ ==> u0024<br>The escape of the symbol of the exponent: ^ ==> u005e<br>Escape of opening curly brace: {==> u007b<br>Escape of the left Parenthesis: [==> u005b<br>Escape of the left Parenthesis: (==> u0028<br>Escape of Vertical Bars: | ==> u007c<br>Escape of right parenthesis:) ==> u0029<br>Escape of Asterisks: * ==> u002a<br>Escape of the plus sign: + ==> u002b<br>Escape of question marks:? ==> u003f<br>Anti-slash escape: ==> u005c</p></p><br> <p><p>Android, using JSON to send data, using the Java escape character Kankan original</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.