Robotics StackExchange | Archived questions

How to send Chinese between topics?

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

Asked by Rikyuugo on 2022-02-16 03:22:20 UTC

Comments

Answers