Comments (5)
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.
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.
The sublime encode is UTF-8 which is the same as MacBook did.
from moco.
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.
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
from moco.
Related Issues (20)
- 部分中文和符号会出现乱码 HOT 3
- socket挡板当并发数较高时,出现了no buffer space available HOT 3
- default if json.req.prop not available HOT 1
- MOCO如何实现带参重定向 HOT 1
- socket请求实现多文件配置
- java.lang.IllegalArgumentException: unknown configuration
- Maven test fails to run moco server when using jacoco maven plugin 0.7.8 or newer #258
- Use URI path parameters on the response template HOT 6
- 返回值类型不支持xml HOT 2
- java.lang.IllegalArgumentException: unknown configuration :[Z@78073c4 HOT 2
- 请求参数中存在中文时,每次请求都报400,怎么进行解决? HOT 1
- 如何支持或的逻辑,以及如何支持对字段名采用正则匹配
- ERROR java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- 请求超过10MB报错,有配置的地方吗 HOT 3
- 返回response json时,template无法使用
- 加载配置文件无法使用*.json HOT 5
- Asynchronous, Duplicate key Accept-Encoding HOT 3
- 希望能支持响应json直接使用模板语法
- The json in the configuration request needs to match all the json in the body in order for the test to pass HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moco.