From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: paulgor@compuserve.com (Paul Gorodyansky) Newsgroups: gmane.emacs.help Subject: Re: Copying and pasting Cyrillic text between Emacs and other apps Date: 28 Jan 2004 11:40:13 -0800 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <36b165a.0401281140.4e2b26c@posting.google.com> References: <36b165a.0401271516.c68fa38@posting.google.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1075319449 1770 80.91.224.253 (28 Jan 2004 19:50:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2004 19:50:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 28 20:50:43 2004 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 1Alvhz-0007xk-00 for ; Wed, 28 Jan 2004 20:50:43 +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 1AlvhV-0004zF-P7 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Jan 2004 14:50:13 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: 198.175.229.3 Original-X-Trace: posting.google.com 1075318814 25925 127.0.0.1 (28 Jan 2004 19:40:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 28 Jan 2004 19:40:14 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:120525 Original-To: help-gnu-emacs@gnu.org 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:16472 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16472 Eli Zaretskii wrote in message news:... > > I wanted something that will show me the Windows codepage and the > Unicode codepoints of the characters; To see Windows code page I use 2 things: a) go to Console and type chcp it returns OEM code page, say 850 and thus I know that Windows code page is 1252 :) MS has all that listed: http://www.microsoft.com/globaldev/reference/cphome.mspx b) have my own 2-line C program that calls GetACP() and puts it on screen :) so I can see "System Code Page: 1252" As for characters and their Unicode codepoints: a) Start/Run - charmap - and I can see a Unicode # for each symbol b) http://www.unicode.org/unicode/reports/tr24/charts/index.html > > I found ClipConvert and (its newer incarnation) Album that do what I > wanted. They can also convert between encodings and CF_* formats, so > it looks like there's another alternative for Paul Gorodyansky's page. Thanks! I'll look at it. -- Regards, Paul Gorodyansky "Cyrillic (Russian): instructions for Windows and Internet": http://ourworld.compuserve.com/homepages/PaulGor/ > > > The locale can't be viewed, but it seems that Emacs might be able to > > do something with that to get text that Emacs puts on the clipboard > > in the right encoding. > > Yes. > > > But it cannot influence how other apps put text on the clipboard > > (which AFAIK is always in the System locale, even if the characters > > cannot be encoded in that). > > It seems like on Windows XP, the characters are implicitly converted > to Unicode (by some internal Windows machinery), so Emacs can always > win using CF_UNICODETEXT if it's available in the clipboard. Failing > that, we can again use CF_LOCALE to determine the correct encoding > with which to decode CF_TEXT text.