From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jasonr (Jason Rumney) @ f2s.com Newsgroups: gmane.emacs.help Subject: Re: Problems displaying UTF-8 coded cyrillic characters in terminal mode Date: Sat, 31 Jul 2004 10:30:15 +0100 Organization: freedom2surf Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091266330 9923 80.91.224.253 (31 Jul 2004 09:32:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 31 Jul 2004 09:32:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 31 11:32:04 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BqqDj-0000mo-00 for ; Sat, 31 Jul 2004 11:32:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BqqH0-0004Wk-VV for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jul 2004 05:35:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.yul.equant.net!newsfeed.uk.prserv.net!prserv.net!news.freedom2surf.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: i-195-137-77-250.freedom2surf.net Original-X-Trace: news.freedom2surf.net 1091266216 21580 195.137.77.250 (31 Jul 2004 09:30:16 GMT) Original-X-Complaints-To: abuse@freedom2surf.net Original-NNTP-Posting-Date: Sat, 31 Jul 2004 09:30:16 +0000 (UTC) X-Face: .PruP48JRO{Z6Rfz?YkZ>)zR+7!Up"`!1Cvq{fGd)@K; y]C:8r\CrJ^Mj\_U"9*WD2 I#zdK_#tw]y9*Y$?ge&b23Zt7zpknL{)F7Px4DVSY6b9dg[^VtkN-R_$YJ0cL''j[, }O#k{k| User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:Ap8jxfowoWMySqNxzyGzFtxnXyM= Original-Xref: shelby.stanford.edu gnu.emacs.help:124569 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19904 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19904 Kamen TOMOV writes: > I'm having problems opening UTF-8 coded files containing text in > cyrillic in terminal mode. The text appears as '?'. Any other coding > is displayed properly (CP1251, ISO-8859-5, KOI8-R). The problem exists > only in terminal mode, e.g. if I start emacs in X mode, everything is > OK. I'm using GNU Emacs 21.3.1. Any help would be appreciated. Emacs 21.3 by default does not convert UTF-8 Cyrillic text to ISO-8859-5 internally. On X, it uses Unicode fonts to display UTF-8 text, and Cyrillic fonts to display the other encodings. In terminal mode, you only have one terminal encoding, so that is the reason why you cannot see the UTF-8 text. See the functions unify-8859-on-encoding-mode and unify-8859-on-decoding-mode to turn on conversion between UTF-8 and ISO-8859-5.