String function ( String arg0 ) { StringBuffer loc0 = new StringBuffer ( ) ; int loc1 = arg0 . length ( ) ; for ( int loc2 = 0 ; loc2 < loc1 ; loc2 ++ ) { int loc3 = arg0 . charAt ( loc2 ) ; append ( loc0 , loc3 ) ; } return loc0 . toString ( ) ; }
encode a string to the `` x-www-form-urlencoded '' form , enhanced with the utf-8-in-url proposal . this is what happens : the ascii characters ` a ' through ` z ' , ` a ' through ` z ' , and ' 0 ' through ' 9 ' remain the same . the unreserved characters - _ . ! ~ ' remain the same . the space character ' ' is converted into a plus sign ' + ' . all other ascii characters are converted into the 3-character string '' % xy '' , where xy is the two-digit hexadecimal representation of the character code all non-ascii characters are encoded in two steps : first to a sequence of 2 or 3 bytes , using the utf-8 algorithm ; secondly each of these bytes is encoded as '' % xx '' . concode_field_sep String[] hex concode_field_sep void append