[LBo] file encodings on Linux
Emen Zhao
emenzhaowork at gmail.com
Mon Sep 3 03:18:18 CEST 2007
Thank you, Anita! That's exactly what I'm looking for.
-- Emen
On 9/1/07, Anita Lewis <a.lewis at linuxbasics.org> wrote:
>
> On 08/20/2007 11:31 PM Emen Zhao wrote:
> > Hello Group,
> >
> > I was working on some software internationalization project recently. I
> was
> > trying to save a txt file as utf-8 encoding, but without any luck.
> Changing
> > the locale setting or LANG env variable seems not helping. For example,
> >
> > 1. export LANG="zh-CN.utf8"
> > 2. create a txt file using vi
> > 3. file file_name
> >
> > It's till displayed as ASCII text.
> >
> > Any pointer on this topic are greatly appreciated! TIA
> >
> >
> > -- Emen
>
> I just got a chance to take a look into vim and utf.
>
> From: http://vimdoc.sourceforge.net/htmldoc/mbyte.html
>
> ENCODING
>
> If your locale works properly, Vim will try to set the 'encoding' option
> accordingly. If this doesn't work you can overrule its value:
>
> :set encoding=utf-8
>
>
> Additional encoding values:
> http://vimdoc.sourceforge.net/htmldoc/mbyte.html#encoding-values
>
> Let us know if that helps.
>
> Anita
>
>
> --
> QnA mailing list - To post: QnA at linuxbasics.org
> Site: http://LinuxBasics.org
> List-options: http://LinuxBasics.org/cgi-bin/mailman/listinfo/qna
>
>
More information about the QnA
mailing list