delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/21/06:40:09

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:message-id:from:reply-to:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=HHYzyE
yRe4mdVfAnu+1zTk+YnyGQsHo2Ne9R2xaYyP8SpCiTxnaVizlow2WIDnTIXJhGDC
PjN4bwAbgNLf2W5T9qQgMmpvhnjaJx09HR2eV7fPjAbzwxcKD26/iUWAhQEVdNN0
79IdAbHDYjTolEmr3F5y5Q4RyHOizL9wdRts4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:message-id:from:reply-to:to:subject
:references:in-reply-to:content-type; s=default; bh=n0KcvsqEpsAD
ZXPEDTmQxsYbxT8=; b=asg/UEfUFg8qWeX79bWTscbfqCO26JbWeC1qq4RFaAU9
i3CUzlJLqiwX4PJDqppbQQ5JRp17XPAnKfPG4H1M5RhEo7ZyjLQSpy/Cyh48v9+I
FJgL4gP2xzwszGIxK90x95+Db0XfbyCXnz0czLWx6tUFXu19JRGqGdcY8zMSU6s=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Ask
X-HELO: lb1-smtp-cloud7.xs4all.net
Date: Thu, 21 Jun 2018 12:39:54 +0200
Message-ID: <0ae55bb6f6a08d8141d03cdd527d9223@smtp-cloud7.xs4all.net>
From: Houder <houder AT xs4all DOT nl>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: UTF-8 character encoding
References: <CAD8GWss253v-p+FjeonEqibr53v6wZRCQ+NWxBhb0LimQaM4sQ AT mail DOT gmail DOT com> <83deb9a1a48a90dbbad9e0d1d50a139b AT smtp-cloud7 DOT xs4all DOT net>
In-Reply-to: <83deb9a1a48a90dbbad9e0d1d50a139b@smtp-cloud7.xs4all.net>
User-Agent: mua.awk 0.99
X-CMAE-Envelope: MS4wfOnllokgWqHnjVDLA2XvjOBs3/+hdX2juLF3WSZUn8a/QO4Nl2Oiin+8SPiY47lZyV8axWmz/Vi+Mp3USYpODsDdzDquewSEwYZ3dXruh/dGKDOwwa14 saWs8GjPSzYRYIwHPRsf33CrGAz2czXdGdoT2DoJBflj29KGbPelUA7k

On Thu, 21 Jun 2018 12:12:39, Houder wrote:
> On Wed, 20 Jun 2018 14:09:59, Lee wrote:
> > I'm looking at
> >   https://cygwin.com/packaging-hint-files.html#pvr.hint
> > and it starts off with
> >   Use UTF-8 character encoding.
> > 
> > How do I do that and how do I check that I actually did use UTF-8
> > character encoding _without_ using file?
> [snip]
> 
> > I used vi to create both files & I'd like to understand why file says
> > one is ascii & the other is utf-8
> 
> vim can tell you that in the statusline ...
> 
> :help statusline
> :help encoding
> 
> Ask Google to help you with the details: GS: "vim show encoding in status".
> 
> E.g.
> 
>  - http://vim.wikia.com/wiki/Show_fileencoding_and_bomb_in_the_status_line
>    (Show fileencoding and bomb in the status line)
> 
> As an example:
> 
> set laststatus=2
> "set statusline=...
> set statusline+=\ en:\ %{strlen(&enc)\ ?\ &enc\ :\ 'x'}
> "set statusline+...

Also read:

 - https://unix.stackexchange.com/questions/23389/how-can-i-set-vims-default-encoding-to-utf-8
   (How can I set VIM's default encoding to UTF-8?)

for a "quickstart" on the subject of character encoding/vim.

Henri


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019