特殊字符转换为ascii

时间:2016-04-26 12:35:18

标签: java url

我需要传递一个字符串,但在后端特殊字符会被转换。如何避免这种情况?请在下面找到我的代码我是如何做到的。

My String "1nIH6iLxXVYBj0J\/JhDlQmSm9aAtjz7ynZpaJ4bxcko="
At the backen "1nIH6iLxXVYBj0J%5C%2FJhDlQmSm9aAtjz7ynZpaJ4bxcko%3D"

Part of my code::
oauthMessage = computeOAuthRequest("POST", appId, appSecret,URLEncoder.encode(authToken,"UTF-8"), url);

0 个答案:

没有答案