Skip to content

Commit 51d6d05

Browse files
authored
Merge pull request ipkn#304 from mosolovsa/issue-302
Fixes issue where `crow::json` escapes UTF-8 characters above value `127`
2 parents 981dc58 + ddc1f18 commit 51d6d05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/crow/json.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace crow
5353
case '\r': ret += "\\r"; break;
5454
case '\t': ret += "\\t"; break;
5555
default:
56-
if (c < 0x20)
56+
if (c >= 0 && c < 0x20)
5757
{
5858
ret += "\\u00";
5959
auto to_hex = [](char c) {

0 commit comments

Comments
 (0)