例如:tset.c

  int main()

 {

    printf("你好,世界\n");

    retuen 0;

   }

 

编译时应该这样:

  iconv -f gb2312 -t utf8 test.c > test1.c       // -f  from  -t  to  从xxx格式到xxx格式

  gcc test1.c -o test1

 

我的是Ubuntu,系统用的是utf8

 

相关文章:

  • 2021-12-04
  • 2021-12-04
  • 2022-12-23
  • 2021-12-05
  • 2022-01-02
  • 2021-09-13
猜你喜欢
  • 2022-01-03
  • 2021-09-17
  • 2021-04-06
  • 2021-12-30
  • 2021-05-29
相关资源
相似解决方案