For example:
cout << \"你好\" << endl;
It all depends on the console/shell you are using.
Some shells can be configured to use UTF-8 (I did it once a long time ago) so it can be done but I forget the details.
Before anbody can really be more specific we need to know the shell you are using and under what platform the shell is running (with full details about versions of each).