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

get 乱码 #59

Open
yuyedaidao opened this issue Jun 2, 2020 · 8 comments
Open

get 乱码 #59

yuyedaidao opened this issue Jun 2, 2020 · 8 comments

Comments

@yuyedaidao
Copy link

获取方法列表时返回的是乱码
image

@andot
Copy link
Member

andot commented Jun 2, 2020

你方法名都是中文的?

@yuyedaidao
Copy link
Author

yuyedaidao commented Jun 2, 2020 via email

@andot
Copy link
Member

andot commented Jun 3, 2020

应该是编码问题,hprose输出的字符串是utf8编码的,但是如果没有汉字的情况下,即使浏览器当成ascii显示也应该是正常的啊,显示成这种乱码格式,我也不知道浏览器把它当成什么编码格式了。

@yuyedaidao
Copy link
Author

image
这段代码能执行吗?🤣

@yuyedaidao
Copy link
Author

上边的诡异代码在我更新了一遍maven的库之后正常了,但是依然返回乱码

@yuyedaidao
Copy link
Author

直接用浏览器访问会当成文件下载,但是打开文件内容为空

@andot
Copy link
Member

andot commented Jun 3, 2020

返回值设置的 Content-Type 是 "text/plain",我觉得也许是服务器本身不支持造成的吧。不过这个 get 返回什么不重要,不影响正常调用。

@yuyedaidao
Copy link
Author

image

这里处理一下之后可以正常返回了,但是请求后很长很长时间才返回

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

2 participants