看板FreeBSD
标 题[问题]vi的中文字变成 /xe6 这是什麽编码?
发信站梦之大地 (Mon Jun 16 00:21:07 2008)
转信站ptt!ctu-reader!ctu-gate!news.nctu!news2!CCNSNews!Dream
我把这段程式码
#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