Giter Site home page Giter Site logo

get 乱码 about hprose-java HOT 8 OPEN

hprose avatar hprose commented on May 23, 2024
get 乱码

from hprose-java.

Comments (8)

andot avatar andot commented on May 23, 2024

你方法名都是中文的?

from hprose-java.

yuyedaidao avatar yuyedaidao commented on May 23, 2024

from hprose-java.

andot avatar andot commented on May 23, 2024

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

from hprose-java.

yuyedaidao avatar yuyedaidao commented on May 23, 2024

image
这段代码能执行吗?🤣

from hprose-java.

yuyedaidao avatar yuyedaidao commented on May 23, 2024

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

from hprose-java.

yuyedaidao avatar yuyedaidao commented on May 23, 2024

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

from hprose-java.

andot avatar andot commented on May 23, 2024

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

from hprose-java.

yuyedaidao avatar yuyedaidao commented on May 23, 2024

image

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

from hprose-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.