From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10669 invoked by alias); 21 Jun 2018 10:39:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 10658 invoked by uid 89); 21 Jun 2018 10:39:58 -0000 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 Received: from lb1-smtp-cloud7.xs4all.net (HELO lb1-smtp-cloud7.xs4all.net) (194.109.24.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Jun 2018 10:39:56 +0000 Received: from tmp.B6DLsNXzFm ([83.162.234.136]) by smtp-cloud7.xs4all.net with ESMTPSA id Vx0LfpTb96brUVx0MfCrht; Thu, 21 Jun 2018 12:39:54 +0200 Date: Thu, 21 Jun 2018 20:46:00 -0000 Message-ID: <0ae55bb6f6a08d8141d03cdd527d9223@smtp-cloud7.xs4all.net> From: Houder Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com Subject: Re: UTF-8 character encoding References: <83deb9a1a48a90dbbad9e0d1d50a139b@smtp-cloud7.xs4all.net> In-Reply-to: <83deb9a1a48a90dbbad9e0d1d50a139b@smtp-cloud7.xs4all.net> Content-Type: text/plain; charset=UTF-8; format=fixed User-Agent: mua.awk 0.99 X-CMAE-Envelope: MS4wfOnllokgWqHnjVDLA2XvjOBs3/+hdX2juLF3WSZUn8a/QO4Nl2Oiin+8SPiY47lZyV8axWmz/Vi+Mp3USYpODsDdzDquewSEwYZ3dXruh/dGKDOwwa14 saWs8GjPSzYRYIwHPRsf33CrGAz2czXdGdoT2DoJBflj29KGbPelUA7k X-SW-Source: 2018-06/txt/msg00237.txt.bz2 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