From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: converting between charsets
Date: Mon, 15 May 2006 23:50:50 -0400 [thread overview]
Message-ID: <87zmhir5tg.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <84d5ef3ua3.fsf@vinci.loc> (Alexander Kotelnikov's message of "Tue, 16 May 2006 00:30:44 +0400")
SM> If you put the cursor on the russian chars before calling
SM> encode-coding-region and hit C-u C-x = what does it say?
> character: Т (01212102, 332866, 0x51442)
> charset: mule-unicode-0100-24ff
> (Unicode characters of the range U+0100..U+24FF.)
> code point: 40 66
> syntax: word
> category: y:Cyrillic
> buffer code: 0x9C 0xF4 0xA8 0xC2
> file code: 0xD0 0xA2 (encoded by coding system utf-8)
> font: -monotype-courier new-medium-r-normal--13-94-99-99-m-80-iso10646-1
SM> If you put the cursor on the `?' that replaced that char and hit C-u C-x =
SM> what does it say?
> character: ? (077, 63, 0x3f)
> charset: ascii (ASCII (ISO646 IRV))
> code point: 63
> syntax: punctuation
> category: a:ASCII l:Latin
> buffer code: 0x3F
> file code: 0x3F (encoded by coding system utf-8)
> font: -monotype-courier new-medium-r-normal--13-94-99-99-m-80-adobe-standard
Hmm... with my Emacs (a recent CVS checkout), if I do
M-: (encode-coding-string (string 332866) 'koi8-r) RET
I get "\364" rather than "?". So either you're running an older Emacs and
the problem has been fixed, or there's something else going that
I don't understand.
Stefan
next prev parent reply other threads:[~2006-05-16 3:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-07 9:52 converting between charsets Alexander Kotelnikov
2006-05-07 12:43 ` Stefan Monnier
2006-05-07 19:40 ` Alexander Kotelnikov
2006-05-08 3:28 ` Stefan Monnier
2006-05-08 9:39 ` Alexander Kotelnikov
2006-05-08 14:30 ` Stefan Monnier
2006-05-09 5:41 ` Alexander Kotelnikov
2006-05-09 18:42 ` Stefan Monnier
2006-05-13 18:42 ` Alexander Kotelnikov
2006-05-14 3:20 ` Stefan Monnier
2006-05-14 17:53 ` Alexander Kotelnikov
2006-05-15 0:37 ` Stefan Monnier
2006-05-15 5:55 ` Alexander Kotelnikov
2006-05-15 6:02 ` Alexander Kotelnikov
2006-05-15 14:11 ` Stefan Monnier
2006-05-15 20:30 ` Alexander Kotelnikov
2006-05-16 3:50 ` Stefan Monnier [this message]
2006-05-16 10:04 ` Alexander Kotelnikov
2006-05-17 15:20 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zmhir5tg.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.