From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: Trouble viewing accented characters Date: Fri, 19 Sep 2008 21:30:29 +0300 Organization: Aioe.org NNTP Server Message-ID: References: <70e18f680809180641s2ad01c49kf91f1d96e68e3c6e@mail.gmail.com> Reply-To: gavenkoa@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1221849755 16130 80.91.229.12 (19 Sep 2008 18:42:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2008 18:42:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 20:43:32 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kgkx2-0004US-7I for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2008 20:43:32 +0200 Original-Received: from localhost ([127.0.0.1]:54343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kgkw0-0007d5-IS for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2008 14:42:28 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news.k-dsl.de!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: rEc5gIP37ngZufdNEy5rew.user.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) Original-Xref: news.stanford.edu gnu.emacs.help:162474 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57815 Archived-At: Peter Dyballa пишет: > > Am 18.09.2008 um 15:41 schrieb Armando Martins: > >> how can I view the accented characters correctly, please? > > By setting the right encoding for the text in the buffer! The ISO Latin > encodings are fine, some MS Losedos code pages (125[02]) also have LATIN > SMALL LETTER [EO] WITH ACUTE on code points octal \351 resp. \363. > > The mode-line of a recent GNU Emacs shows the encoding used in the > buffer, the Options menu has a Mule entry which lets you choose another > coding system by reverting this file now (C-x RET r). > > Setting environment variables like LANG or LC_CTYPE to a reasonable > value can enable GNU Emacs to use this reasonable value to present you a > text file's contents. You can also try to set > > (prefer-coding-system 'iso-8859-15) > > in your init file. > Your way if all file in single coding. For my Ukraine I have much text with cp866, cp1251, koi8-r, uft-16-le, utf-8. I found the method explain coding system already opened file to emacs by typing C-x C, type character set of file (by you can learn what are exist) and C-x revert-buffer. After emacs understand coding of file you may save file in other coding system typing C-x f. This useful tip then need windows CR/LF convert to UNIX LF.