Skip to content

App crashes when dump method called for non ascii chars. #2126

@fortunecoders

Description

@fortunecoders

`#include "nlohmann\json.hpp"
#include
#include

using nlohmann::json;

int main()
{
std::string s = "Casa De Los Niños, Inc."; // Sample string with non ascii chars at 15th location 1 based index.

//json second = json::parse(s); -- crashes here.
json second = s; // works

std::string s2 = (second.dump()); //// Crashes here

}
`
Project is setup with MBCS Character set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    solution: proposed fixa fix for the issue has been proposed and waits for confirmation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions