unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: paulgor@compuserve.com (Paul Gorodyansky)
Subject: Re: Copying and pasting Cyrillic text between Emacs and other apps
Date: 28 Jan 2004 11:40:13 -0800	[thread overview]
Message-ID: <36b165a.0401281140.4e2b26c@posting.google.com> (raw)
In-Reply-To: mailman.1502.1075297883.928.help-gnu-emacs@gnu.org

Eli Zaretskii <eliz@gnu.org> wrote in message news:<mailman.1502.1075297883.928.help-gnu-emacs@gnu.org>...
> 
> 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.

  parent reply	other threads:[~2004-01-28 19:40 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-27  4:08 Copying and pasting Cyrillic text between Emacs and other apps eMaXer
2004-01-27 23:16 ` Paul Gorodyansky
2004-01-28  0:25   ` Jason Rumney
2004-01-28  6:33     ` Eli Zaretskii
     [not found]     ` <mailman.1484.1075271523.928.help-gnu-emacs@gnu.org>
2004-01-28  8:54       ` Jason Rumney
2004-01-28 13:36         ` Eli Zaretskii
2004-01-28 19:31         ` Paul Gorodyansky
2004-01-28 20:31           ` Jason Rumney
2004-01-29  5:29             ` Paul Gorodyansky
2004-01-29  8:54               ` Jason Rumney
     [not found]     ` <mailman.1502.1075297883.928.help-gnu-emacs@gnu.org>
2004-01-28 19:40       ` Paul Gorodyansky [this message]
2004-01-29  6:04         ` Eli Zaretskii
     [not found]     ` <mailman.1500.1075297455.928.help-gnu-emacs@gnu.org>
2004-01-28 20:28       ` Jason Rumney
2004-01-29  6:17         ` Eli Zaretskii
2004-01-28  6:27   ` Eli Zaretskii
2004-01-28  7:55     ` Eli Zaretskii
2004-01-28  9:29     ` Eli Zaretskii
     [not found]     ` <mailman.1491.1075282404.928.help-gnu-emacs@gnu.org>
2004-01-28 20:32       ` Paul Gorodyansky
2004-01-29  6:14         ` Eli Zaretskii
     [not found]   ` <mailman.1483.1075271175.928.help-gnu-emacs@gnu.org>
2004-01-28  9:01     ` Jason Rumney
2004-01-28 13:48       ` Eli Zaretskii
2004-01-28 19:45     ` Paul Gorodyansky
2004-01-28 19:57       ` Kevin Rodgers
2004-01-29  5:55       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=36b165a.0401281140.4e2b26c@posting.google.com \
    --to=paulgor@compuserve.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).