How to replace all occurrences of a character in string?
std::string doesn’t contain such function but you could use stand-alone replace function from algorithm header.
std::string doesn’t contain such function but you could use stand-alone replace function from algorithm header.
Works for me, when I copy/paste your code. Try replacing the double quotes in your str_replace() with single quotes, or escaping the backslash (“\\u00a0”).