ROS_INFO_STREAM with Unicode

asked 2017-10-24 05:00:15 -0500

lalten gravatar image

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?

edit retag flag offensive close merge delete