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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/crow/json.h

+1-1
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)