You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our App, we use a java program to write JSON string into a standard IO stream, and we use listener to track the stream through command.stdout.on("data", (data) => { console.log(data) }).
There are some Chinese characters in the response data and we lost the response in this API (the terminal shows an empty strings).
Such a problem only exists when responses contain some Chinese characters on Windows. On macOS and Ubuntu, it works well.
We also tested our API directly using Node.js on Windows and we got the Chinese content correctly.
To Reproduce
Steps to reproduce the behavior:
use command.stdout.on("data", (data) => { console.log(data) }) and data string has some Chinses characters.
Expected behavior
command.stdout.on() can get Chinese characters correctly. If there are some encoding problems, at least the api can get us some Chinese Garbled instead of an empty string.
Describe the bug
In our App, we use a java program to write JSON string into a standard IO stream, and we use listener to track the stream through
command.stdout.on("data", (data) => { console.log(data) })
.There are some Chinese characters in the response data and we lost the response in this API (the terminal shows an empty strings).
Such a problem only exists when responses contain some Chinese characters on Windows. On macOS and Ubuntu, it works well.
We also tested our API directly using Node.js on Windows and we got the Chinese content correctly.
To Reproduce
Steps to reproduce the behavior:
use
command.stdout.on("data", (data) => { console.log(data) })
and data string has some Chinses characters.Expected behavior
command.stdout.on()
can get Chinese characters correctly. If there are some encoding problems, at least the api can get us some Chinese Garbled instead of an empty string.Platform and Versions (required):
The text was updated successfully, but these errors were encountered: