diff --git a/folly/json.cpp b/folly/json.cpp index ecc0ad62de8..d39f7bd5b16 100644 --- a/folly/json.cpp +++ b/folly/json.cpp @@ -828,7 +828,7 @@ template void escapeStringImpl( StringPiece input, std::string& out, const serialization_opts& opts) { auto hexDigit = [](uint8_t c) -> char { - return c < 10 ? c + '0' : c - 10 + 'a'; + return c < 10 ? c + '0' : c - 10 + 'A'; }; out.push_back('\"');