[問題]vi的中文字變成 /xe6 這是什麼編碼?

看板FreeBSD作者時間17年前 (2008/06/16 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
我把這段程式碼 #include <stdio.h> #include <stdlib.h> int main(void) { char c = '\''; printf("單引號字元 %c \n", c); printf(" \" \061 個 \x48\x45\x4c\x4c\x4f\x21 \" \n"); system("/bin/df -h"); return 0; } 開啟vi貼上 一貼上馬上就變奇怪的東西了 #include <stdio.h> #include <stdlib.h> int main(void) { char c = '\''; printf("\xb3\xe6\xa4\xde\xb8\xb9\xa6r\xa4\xb8 %c \n", c); printf(" \" \061 \xad\xd3 \x48\x45\x4c\x4c\x4f\x21 \" \n"); system("/bin/df -h"); return 0; } 那是什麼碼啊? 我可以在vim和joe中正常看到中文字,也正常編輯(所以不是要問怎麼看到中文字哦...) -- ︵︵ █▔◣ █▔█ █▔▔ █▔█ █▆▉ █ █▔█ █◣█ █▔ █◣︵︵ █ █ █▁◤ █▁▁ █▁█ ▉▉▉ █ █▁█ █◥█ █ █ 夢之大地 逼逼ㄟ四 █▁◤ █ █ █▁▁ █ █ ▉▉▉ █▁ █ █ █ █ █▁◤ ※ Origin: <bbs.ccns.ncku.edu.tw> ◆ From: 220.142.31.75
文章代碼(AID): #18LLZb00 (FreeBSD)
文章代碼(AID): #18LLZb00 (FreeBSD)