Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用DefaultRopClient post数据时,中文乱码 #20

Open
hmilvu opened this issue Sep 8, 2014 · 0 comments
Open

使用DefaultRopClient post数据时,中文乱码 #20

hmilvu opened this issue Sep 8, 2014 · 0 comments

Comments

@hmilvu
Copy link

hmilvu commented Sep 8, 2014

在使用DefaultRopClient post数据时,如果参数是中文,在服务器接收方参数会变成乱码。经过查看源代码,发现DefaultRopClient是使用Spring的RestTemplate进行post数据,RestTemplate构造函数里默认的字符串编码是ISO-8859-1,所以会造成中文编码?请问这个问题Rop里面怎么解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant