From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: utf-8 cut/paste Date: Tue, 25 May 2004 09:06:21 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: sds@gnu.org NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1085496579 32429 80.91.224.253 (25 May 2004 14:49:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 May 2004 14:49:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 25 16:49:29 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BSdFB-00048H-00 for ; Tue, 25 May 2004 16:49:29 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BSdFA-0005XF-00 for ; Tue, 25 May 2004 16:49:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BScna-0004uo-N3 for emacs-devel@quimby.gnus.org; Tue, 25 May 2004 10:20:58 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BSc87-00069x-EZ for emacs-devel@gnu.org; Tue, 25 May 2004 09:38:07 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BSbkX-000277-HK for emacs-devel@gnu.org; Tue, 25 May 2004 09:14:16 -0400 Original-Received: from [198.112.236.6] (helo=alphatech.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BSbdS-00010x-Fo; Tue, 25 May 2004 09:06:26 -0400 Original-Received: from WINSTEINGOLDLAP ([10.0.64.31]) by alphatech.com (8.12.10/8.12.10) with ESMTP id i4PD6LYT001048; Tue, 25 May 2004 09:06:21 -0400 (EDT) Original-To: Benjamin Riefenstahl X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Mail-Copies-To: never In-Reply-To: (Benjamin Riefenstahl's message of "Tue, 25 May 2004 01:10:17 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23921 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23921 > * Benjamin Riefenstahl [2004-05-25 01:10:17 +0200]: > > Sam Steingold writes: >> Suppose I have a utf-8 buffer (all my buffers are unicode because of >> (prefer-coding-system 'utf-8) and (modify-coding-system-alist 'file >> "" 'utf-8)) with cyrillic characters. what do I do to get them into >> firefox? > > You don't, at least not via the Windows clipboard. Re-read what I > wrote earlier: > >>> Emacs uses the legacy 8-bit text clipboard format, it doesn't use >>> Unicode even on NT-based systems. 8-bit text won't work with >>> arbitrary Unicode characters, naturally. > > I assume you are on an English system. So your 8-bit Windows encoding > is cp1252 (Latin-1 plus MS extensions). That doesn't cover cyrillic, > so you can't cut-and-paste cyrillic. That's regardless of what Emacs > supports or uses internally. Emacs would have to use the Unicode > version of the Windows clipboard transfer to do this, but as of yet it > doesn't. > > You can of course write the data into a file in UTF-8 and read that in > Firefox or Notepad. Thanks a lot for clarifying the matter. -- Sam Steingold (http://www.podval.org/~sds) running w2k What garlic is to food, insanity is to art.