linux shell中文乱码问题

骑猪看日落 2022-03-17 12:43 593阅读 0赞

分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

  1. linux shell中文乱码问题经常碰到, 以前也碰到过, 就听之任之了。 实际上, 有很多方法可以解决这个显示问题, 下面我来提供一种, 聊作记录:
  2. taoge@localhost test> lstest.cpptaoge@localhost test> g++ test.cpp test.cpp: In function 鈥榠nt main()鈥 test.cpp:10: error: invalid conversion from 鈥榠ntto 鈥榗onst char*鈥test.cpp:10: error: initializing argument 1 of 鈥榮td::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]鈥test.cpp:11: error: invalid conversion from 鈥榠ntto 鈥榗onst char*鈥test.cpp:11: error: initializing argument 1 of 鈥榮td::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]鈥test.cpp:12: error: invalid conversion from 鈥榠ntto 鈥榗onst char*鈥test.cpp:12: error: initializing argument 1 of 鈥榮td::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]鈥taoge@localhost test> taoge@localhost test> taoge@localhost test> taoge@localhost test> LANG="zh_CN.GB18030" taoge@localhost test> taoge@localhost test> taoge@localhost test> taoge@localhost test> g++ test.cpp test.cpp: In function int main()’:test.cpp:10: 错误:从类型‘int’到类型‘const char*’的转换无效test.cpp:10: 错误: 初始化‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’的实参 1test.cpp:11: 错误:从类型‘int’到类型‘const char*’的转换无效test.cpp:11: 错误: 初始化‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’的实参 1test.cpp:12: 错误:从类型‘int’到类型‘const char*’的转换无效test.cpp:12: 错误: 初始化‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’的实参 1taoge@localhost test>
  3. 要想使得修改永久剩下, 那就用export放到~/.bashrc中, 然后source ~/.bashrc一下吧。
  4. 本文聊作记录。

分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

发表评论

表情:
评论列表 (有 0 条评论,593人围观)

还没有评论,来说两句吧...

相关阅读

    相关 解决:Linux中文问题

    最近在制作一个个人网站,期间需要上传头像,为了满足需要需要把头像上传到服务器进行存取,本地测试的时候OK的,服务器测试的时候发现照片存中文名的时候乱码,于是这篇博客就诞生了。