From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Konstantinos Efstathiou Newsgroups: gmane.emacs.help Subject: Problem with UTF-8 Date: Mon, 1 Dec 2003 19:14:11 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <29BC70EE-242A-11D8-A97D-0003939570E8@purple.univ-littoral.fr> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1070327349 4238 80.91.224.253 (2 Dec 2003 01:09:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2003 01:09:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 02:09:07 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQz2I-0004E9-00 for ; Tue, 02 Dec 2003 02:09:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQzQM-0001t7-79 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Dec 2003 20:33:58 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AQyKc-0002Hg-F9 for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 19:23:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AQxqg-0006aB-6T for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 18:53:37 -0500 Original-Received: from [193.49.194.55] (helo=purple.univ-littoral.fr) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQtWI-0003e5-NO for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 14:15:42 -0500 Original-Received: from [127.0.0.1] (purple.univ-littoral.fr [193.49.194.55]) by purple.univ-littoral.fr (8.12.8/8.12.8) with ESMTP id hB1IEDAf013515 for ; Mon, 1 Dec 2003 19:14:14 +0100 Original-To: help-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.606) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:14813 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14813 It seems that emacs can not display properly a text file with UTF-8 encoding. Specifically, I do the following: (1) Create a new buffer with UTF-8 encoding: C-x C-f test.txt (2) Change the input method to greek: C-u C-\ greek (3) Write some characters. Everything appears perfectly. (4) Toggle the input method: C-\ (5) Save the file: C-x C-s (6) Open the file: C-x C-f test.txt Now all the greek characters appear as squares. I am using GNU Emacs 21.3.50.1 (powerpc-apple-darwin7.0.0) under Mac OS X 10.3. When I open the file with TextEdit using the UTF-8 encoding and everything looks fine in there. In my .emacs I have (set-language-environment 'greek) (set-default-coding-systems 'utf-8) (prefer-coding-system 'utf-8) Note also that if I set the proper variables for using iso-8859-7 everything works great.