clion编码问题

1、

解决CLion中文乱码问题_weixin_43912367的博客-CSDN博客_clion乱码

并没有解决问题。console中还是乱码;

2、我的console还是有编码问题 

 

#include <iostream>

int main() {
    system("chcp 65001 > nul");
    std::cout << "Hello, World!" << std::endl;
    std::cout << "Hello, World!" << std::endl;
    std::cout << "Hello, World!" << std::endl;
    std::cout << "Hello, World!" << std::endl;
    std::cout << "Hello, World!" << std::endl;
    std::cout << "中文编码测试" << std::endl;
    system("pause");
    return 0;
}

posted @ 2022-03-21 14:24  bH1pJ  阅读(32)  评论(0编辑  收藏  举报