Skip to content

broken UTF-8 encoded content terminal output on Windows #9841

@OSPanel

Description

@OSPanel

Latest version (x86 & x64 tested) with cmd.exe (Windows 10).

When requesting data using curl.exe output to the console occurs with errors if the response is in UTF 8 encoding.

The output failure occurs in about 1 attempt out of 5 and usually in the same arbitrary place regardless of the text. Most likely, it's all about the incorrect gluing of chunks.

Wget has no such problem (tested).

TEST (do a lot of attempts, the output will sometimes be broken):
curl.exe https://raw.githubusercontent.com/OSPanel/OpenServerPanel/main/system/lang/Russian.txt

Incorrect results: https://raw.githubusercontent.com/OSPanel/OpenServerPanel/main/resources/error.png

Metadata

Metadata

Assignees

Labels

UnicodeUnicode, code page, character encodingWindowsWindows-specificcmdline tool

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions