How to send Chinese between topics?

asked 2022-02-16 02:22:20 -0500

Rikyuugo gravatar image

I use C + + programming, the environment is kinetic I'm writing a multigoal navigation action and its feedback need to send point information during navigation.

setlocale(LC_CTYPE,"zh_CN.utf8")

It's written at the beginning of action. After this,chinese can be displayed on the terminal by std::cout or ROS_INFO.But when I subscribe to the /action/feedback, Chinese becomes Unicode,but English is still normal. Any suggestion is welcome.Thanks a lot.

image description

edit retag flag offensive close merge delete