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=Wy1cYF Tpx6EKVqdo5H23I0AVmJza6DU0hRhmlYwLiWbpDj9HRaAhj+9yzHR38ppKYpW769 9EJX3J1eCcoNYEX/pq7LYmU6xMI8JsL6u8TVD8Eg+LacAPGSpXxUvFI0APYatg9z JooyhvsJcDZ2zoyRstsCkNOTaW1r7Zc+iL2G8= 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=3qkUz9sxLCyu G9bYp6llaUWlbmE=; b=wsmJ3Td5YBWRxhcTDG0jJyNRtJYUk1H8dgJlbwPXkMs/ gsp9FmAE+yy6TZUS3HVGU4v39Wm+f8tLFoW1EhG+oAdz8MngoDdK9bbvD9eaCCTt Iy9V+Il1lIn97LRtaeYvOXabNKonESObSK1ZaGEl81XyrZDtbXUsg7sSe9PO59Q= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=bomb, H*F:D*nl, Show, H*M:smtp X-HELO: lb2-smtp-cloud7.xs4all.net Date: Thu, 21 Jun 2018 12:12:39 +0200 Message-ID: <83deb9a1a48a90dbbad9e0d1d50a139b@smtp-cloud7.xs4all.net> From: Houder Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: UTF-8 character encoding References: In-Reply-to: Content-Type: text/plain; charset=UTF-8; format=fixed User-Agent: mua.awk 0.99 X-CMAE-Envelope: MS4wfCU+bbrq1uZXC9/9T85vrHp86nmDVOSWYGLof1U+kBuQNPVGCveIXcbbcSv84fcrjNsMDNvX7pd14eAg63N0V5hGDoqPSco59BG/VgRqabsRbVYdQ/kX 5ak9d5z+u5NB8bor661QJ4/0gUJQXrrb4+AbLzrQgEQqVawZ0u4ogVd8UgSZQ0gTWAThhFnEZKpGVQ== 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+... 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