Code Monkey home page Code Monkey logo

Comments (5)

dreamhead avatar dreamhead commented on August 17, 2024

I've tested this configuration with moco 1.4.0 release on Mac and it works well. I guess your editor does not save this configuration in correct charset.

from moco.

yifei325325 avatar yifei325325 commented on August 17, 2024

Hi Dreamhead,

Thanks for your quick response. I tried the MacBook with moco 1.4.0. Yes, It exactly works, But for the Windows PC, It's not. Can I trouble you to debug this on a Windows PC? (Windows 10 22H2 installed). Thank you very much.

from moco.

yifei325325 avatar yifei325325 commented on August 17, 2024

The sublime encode is UTF-8 which is the same as MacBook did.
image

from moco.

yifei325325 avatar yifei325325 commented on August 17, 2024

The console log is below:

GET /hello HTTP/1.1
Cookie: Pycharm-1ff3c3be=71f9c357-d755-4f06-bb6c-4f940f546c29; Webstorm-c182b445=39a3fd0f-e14c-4fd4-beff-363155306b08; ___rl__test__cookies=1683883019300
content-length: 0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36
Sec-Fetch-Site: none
Sec-Fetch-Dest: document
Host: localhost:9999
Accept-Encoding: gzip, deflate
Sec-Fetch-Mode: navigate
sec-ch-ua: "Google Chrome";v="93", " Not;A Brand";v="99", "Chromium";v="93"
sec-ch-ua-mobile: ?0
Upgrade-Insecure-Requests: 1
sec-ch-ua-platform: "Windows"
Sec-Fetch-User: ?1
Accept-Language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,ko-KR;q=0.6,ko;q=0.5,de-DE;q=0.4,de;q=0.3,zh-HK;q=0.2

15 May 2023 08:52:16 [pool-1-thread-4] INFO  Response return:

HTTP/1.1 200
Access-Control-Expose-Headers: X-Requested-With
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,OPTIONS
Content-Length: 163
Content-Type: application/json; charset=utf-8

{"result":[{"name":"瀛?","age":18},{"name":"涓ゅ瓧","age":18},{"name":"涓変釜瀛?","age":18},{"name":"鍥涗釜瀛楀瓧","age":18},{"name":"鏈変簲涓瓧瀛?","age":188}]}

from moco.

HelloEason avatar HelloEason commented on August 17, 2024

i have meet the same problem while response xml body .
fix that via move the data into file as the api says, but by this way , it can't support template
image

from moco.

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.