From: James He <ic...@us...> - 2004-07-16 07:38:13
|
Should we supply 'encoding=enc-cn' files together with those utf8 encoded files? I think some people would have difficulty seeing the utf8 encoded files in some situations. I am just one of them. :) Sometimes, I use Putty to ssh to my Debian box(without X) under Windows XP. And then it is difficult to see all the utf8 encoded characters normally on screen. I used a simple script to convert all the translated docs to 'enc-cn' encoding and everything is okay. The script is as follows and it uses a packaged named 'zh-autoconvert' which supplies the tools 'autogb': ========================================== server# cat convert.sh #!/bin/sh for i in doc/*.txt; do autogb -i utf8 -o gb < $i >$i.tmp mv $i.tmp $i done ========================================== Still I am not quite sure if it is proper for us to supply author 'enc-cn' encoded copy of those docs. :) Best regards, -- James He |
From: Simon L. <wzh...@sp...> - 2004-07-16 09:31:34
|
On Fri, 16 Jul 2004 15:38:01 +0800, "James He" <ic...@us...> said: > Should we supply 'encoding=enc-cn' files together with those utf8 encoded > files? > I think some people would have difficulty seeing the utf8 encoded files > in some > situations. I am just one of them. :) > > Sometimes, I use Putty to ssh to my Debian box(without X) under Windows > XP. And > then it is difficult to see all the utf8 encoded characters normally on > screen. > I used a simple script to convert all the translated docs to 'enc-cn' > encoding > and everything is okay. The script is as follows and it uses a packaged > named > 'zh-autoconvert' which supplies the tools 'autogb': > > ========================================== > server# cat convert.sh > #!/bin/sh > > for i in doc/*.txt; do > autogb -i utf8 -o gb < $i >$i.tmp > mv $i.tmp $i > done > ========================================== I didn't fully understand your problem. But try :set enc=euc-cn in Vim. This (supposedly) will ask Vim to convert utf-8 to euc-cn on the fly. lang2 -- Simon Liang wzh...@sp... |
From: James He <ic...@us...> - 2004-07-16 10:44:06
|
on Fri, 16 Jul 2004 10:31:32 +0100 "Simon Liang" <wzh...@sp...> wrote: > I didn't fully understand your problem. But try :set enc=euc-cn > in Vim. This (supposedly) will ask Vim to convert utf-8 to euc-cn > on the fly. 我的问题是,在windows下面用putty来ssh到linux中时 显示utf8编码的文件有问题――总是或多或少有些乱码 所以我只能把所有的帮助文件转换成gb2312编码的才能看 不知道其他人有没有相似的情况 可能这是少数情况,不用考虑――那么直接忽略我的这个帖子好了 :) Best regards, -- James He |
From: Simon L. <wzh...@sp...> - 2004-07-16 10:55:22
|
> =CE=D2=B5=C4=CE=CA=CC=E2=CA=C7=A3=AC=D4=DAwindows=CF=C2=C3=E6=D3=C3putty= =C0=B4ssh=B5=BDlinux=D6=D0=CA=B1 > =CF=D4=CA=BEutf8=B1=E0=C2=EB=B5=C4=CE=C4=BC=FE=D3=D0=CE=CA=CC=E2=A1=AA=A1= =AA=D7=DC=CA=C7=BB=F2=B6=E0=BB=F2=C9=D9=D3=D0=D0=A9=C2=D2=C2=EB >=20 > =CB=F9=D2=D4=CE=D2=D6=BB=C4=DC=B0=D1=CB=F9=D3=D0=B5=C4=B0=EF=D6=FA=CE=C4= =BC=FE=D7=AA=BB=BB=B3=C9gb2312=B1=E0=C2=EB=B5=C4=B2=C5=C4=DC=BF=B4 > =B2=BB=D6=AA=B5=C0=C6=E4=CB=FB=C8=CB=D3=D0=C3=BB=D3=D0=CF=E0=CB=C6=B5=C4= =C7=E9=BF=F6 >=20 > =BF=C9=C4=DC=D5=E2=CA=C7=C9=D9=CA=FD=C7=E9=BF=F6=A3=AC=B2=BB=D3=C3=BF=BC= =C2=C7=A1=AA=A1=AA=C4=C7=C3=B4=D6=B1=BD=D3=BA=F6=C2=D4=CE=D2=B5=C4=D5=E2=B8= =F6=CC=FB=D7=D3=BA=C3=C1=CB :) That is what I mean. Do ':set enc=3Deuc-cn' before=20 doing :help and Vim will do the conversion for you. No=20 need for the script. lang2 --=20 Simon Liang wzh...@sp... |
From: xxxss <xx...@ms...> - 2004-11-05 03:04:16
|
我也是碰到这个问题,原来以为是系统和vim设置问题,可是不管怎么改, 始终没法看utf8格式,只能是改putty的设置,可是改了之后utf8的文件也不是 全都能看,总有一些字是无法显示的... 而且怎么也没发让utf8和gb2312共存阿。。 为了看utf8,改了putty设置之后一般的中文文件就没法看了, 没法两个同时看. 总之很头疼...... 我总觉得不至于就我这么笨..肯定还有很多用户跟我一样吧.... 个人认为现在这套方案十分地十分地不适合中国人.... 因为vimcdoc现在成了我这里唯一一套不能看的中文文档..... 强烈建议几位老大考虑一下.. -- xxxss <xx...@ms...> |
From: xxxss <xx...@ms...> - 2004-11-05 09:19:07
|
无法显示的字的问题是vim的设置问题。。不过其他依然令人头疼。。 反正翻译出来的vim的文档不是给老外看的。。根本没必要用utf8。 或者即使要用,建议出两个版本。。或者安装时可以由用户选择。。 -- xxxss <xx...@ms...> |
From: xxxss <xx...@ms...> - 2004-11-05 10:31:14
|
好了。。设置好vim了。。现在什么都能看了。。 不过看了好几个小时。。还是我不用心看造成的。。大家当没看到我发的好了。 -- xxxss <xx...@ms...> |
From: Alecs K. <al...@pe...> - 2004-07-16 18:58:01
|
On Fri, Jul 16, 2004 at 03:38:01PM +0800, James He wrote: > Should we supply 'encoding=enc-cn' files together with those utf8 encoded files? > I think some people would have difficulty seeing the utf8 encoded files in some > situations. I am just one of them. :) No worries. Vim will do the conversion for you. -- Alecs King |