On 13/04/09 21:48, smu johnson wrote:
> Hi,
>
> I used to run an old version of vi, probably the 6.0 version group...
> and since upgrading to 7.2, I can no longer view kana on the editor. I
> have toggled UTF-8 stuff in .vimrc with no help. It's not my terminal
> encoding either as I can just do a "cat" command of the text file and it
> shows up nicely.
>
> This is what it looks like in cat: (you may need japanese language pack
> to see this):
>
> sjohn...@web1:~/rtk/sentences$ cat sentences_db.txt
> 1|油が切れそうなので、、ババカンスが必要です。|あぶら き▒き ひつよう|I
> need a vacation because I'm just about exhausted.|
>
> in vi however, it looks like this
>
> 1 1|油
> ▒~a~l▒~h~g▒~b~l▒~a~]▒~a~f▒~a▒▒~a▒▒~a▒�...@~a▒~@~a▒~c~p▒~c~p▒~b▒▒~c▒▒~b▒▒~a~l▒~e▒~a▒~a▒▒~a~y�...@~b|▒~a~b▒~a▒▒~b~i�...@~@▒~a~m▒~a▒~a~m�...@~@▒~A▒▒~A▒▒~B~H▒~A~F|I
> need
> a vacation because I'm just about exhausted.|
>
> Any help greatly appreciated!
:echo has('multi_byte')
(if zero, reconfigure with better features then recompile, or find a
build compiled with +multi_byte)
:echo has('iconv')
(if zero, make sure you have the iconv library properly installed, if it
still doesn't work even by restarting Vim, recompile Vim with "make
reconfig")
:verbose set enc? tenc? fenc? fencs?
:language
See also http://vim.wikia.org/wiki/Working_with_Unicode
If Vim doesn't easily recognise your file's encoding, you can help it, e.g.
:e ++enc=sjis somefile.txt
will tell Vim that the file is encoded in Shift-JIS.
Best regards,
Tony.
--
The truth is what is; what should be is a dirty lie.
-- Lenny Bruce
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---