From: PJ Weisberg <pjweisberg@gmail.com>
To: "Buchs, Kevin" <buchs.kevin@mayo.edu>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: those funny non-ASCII characters
Date: Thu, 31 May 2012 08:59:39 -0700 [thread overview]
Message-ID: <CAJsNXTnTMfEx07FQj3_-xhESPHSoiyszCi_yBP212j4cSewLbQ@mail.gmail.com> (raw)
In-Reply-To: <F326B9A37B353A449FC7A09B36835F8201048355@MACE.sppdg.ad>
[-- Attachment #1: Type: text/plain, Size: 1436 bytes --]
On Wednesday, May 30, 2012, Buchs, Kevin <buchs.kevin@mayo.edu> wrote:
> What about opening an ASCII coded file? Can emacs
> properly detect it or does it come up as UTF-8?
Emacs attempts to determine the correct coding system when it opens a file,
so you shouldn't have to worry about this.
The 128 characters that make up ASCII have the exact same representation in
UTF-8. "Converting" as ASCII file to UTF-8 is a no-op. Therefore,
treating an ASCII file as UTF-8 should cause no problems.
> I assume that if my lisp library files are encoded utf-8, then I can
> paste that UTF-8 character from the web page into my call to
> (replace-string ...) in order to substitute the longer dash of Unicode
> U+2013 with an ASCII hyphen or double hyphen. But, how does that really
> work? If the lisp file is encoded utf-8, then how can I put an ASCII
> character in the replacement string? Or do I need to encode the hex
> value of the ASCII character(s)?
A = A. The hyphen-minus is a hyphen-minus whether it's in an ASCII file as
00101101 or a UTF-16 file as 0000000000101101. So, just type it with your
keyboard.
BTW, I don't know how Xah intended it, but when he said to "embrace
unicode," I interpreted it to mean, "Why don't you just leave em-dashes as
em-dashes instead of replacing them with two hyphen-minuses?"
--
-PJ
Gehm's Corollary to Clark's Law: Any technology distinguishable from
magic is insufficiently advanced.
[-- Attachment #2: Type: text/html, Size: 1655 bytes --]
next prev parent reply other threads:[~2012-05-31 15:59 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-30 17:15 those funny non-ASCII characters Buchs, Kevin
2012-05-31 7:17 ` Thien-Thi Nguyen
2012-05-31 14:57 ` Buchs, Kevin
2012-05-31 16:40 ` Thien-Thi Nguyen
2012-05-31 16:56 ` Buchs, Kevin
2012-05-31 21:46 ` Thien-Thi Nguyen
2012-06-01 13:36 ` Doug Lewan
[not found] ` <mailman.2041.1338500734.855.help-gnu-emacs@gnu.org>
2012-06-01 2:42 ` rusi
2012-05-31 15:59 ` PJ Weisberg [this message]
[not found] <mailman.1961.1338398127.855.help-gnu-emacs@gnu.org>
2012-06-01 4:23 ` Jason Rumney
2012-06-01 5:43 ` rusi
2012-06-01 6:12 ` Eli Zaretskii
2012-06-01 7:03 ` Xah Lee
2012-06-01 16:26 ` rusi
2012-06-01 21:06 ` Xah Lee
2012-06-02 3:17 ` rusi
2012-06-02 11:54 ` Xah Lee
2012-06-02 14:10 ` Xah Lee
[not found] <mailman.1665.1337953237.855.help-gnu-emacs@gnu.org>
2012-05-25 18:33 ` Xah Lee
-- strict thread matches above, loose matches on Subject: below --
2012-05-25 13:40 Buchs, Kevin
2012-05-25 14:04 ` Eli Zaretskii
2012-05-25 14:42 ` Jambunathan K
[not found] <mailman.1638.1337903381.855.help-gnu-emacs@gnu.org>
2012-05-25 0:56 ` Xah Lee
2012-05-24 23:49 Buchs, Kevin
2012-05-25 6:36 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJsNXTnTMfEx07FQj3_-xhESPHSoiyszCi_yBP212j4cSewLbQ@mail.gmail.com \
--to=pjweisberg@gmail.com \
--cc=buchs.kevin@mayo.edu \
--cc=help-gnu-emacs@gnu.org \
/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.