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... |