ROS_INFO_STREAM with Unicode
I want Unicode characters in my log.
std::cout << "Could not parse \"" << std::regex_replace(line, std::regex("\n"), "␊") << "\"" << std::endl;
works as expected and gives Could not parse "-1926,491,0,0␊"
, but
ROS_INFO_STREAM("Could not parse \"" << std::regex_replace(line, std::regex("\n"), "␊") << "\"");
yields [ INFO] [1508838858.823911506]: Could not parse "-1632,491,0,0???"
Is there a way to fix this?