From: Reiner Steib <reinersteib+from-uce@imap.cc>
Cc: emacs-devel@gnu.org
Subject: Re: regex encoding
Date: Tue, 01 Aug 2006 21:46:32 +0200 [thread overview]
Message-ID: <v9slkgnsrr.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0608011501120.2363@localhost.localdomain> (Chip Coldwell's message of "Tue, 1 Aug 2006 15:09:46 -0400 (EDT)")
On Tue, Aug 01 2006, Chip Coldwell wrote:
> If your mail reader can handle UTF-8, the characters represented by
> these iso-8859-1 codes look like this:
>
> [a-zA-ZÄÖÜäößü]
| [a-zA-ZÄÖÜäößü]
If you intend to send UTF-8, you MUA should not declare it as
"Content-Type: TEXT/PLAIN; charset=ISO-8859-1". ;-)
> My question is: are emacs regex character classes limited to the
> iso-8859-1 character set, or is there some way to represent Unicode
> (such as UTF-8) characters in a character class?
AFAIK, you can write the chars in UTF-8 if you specify the encoding of
the lisp file, cf. (info "(emacs)Specify Coding"):
--8<---------------cut here---------------start------------->8---
;; -*- coding: utf-8 -*-
(defun rs-test ()
(interactive)
(re-search-forward "[ÄÖÜäößü]"))
--8<---------------cut here---------------end--------------->8---
I don't know if there's a reason why isn't used in `ispell.el'.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2006-08-01 19:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-01 19:09 regex encoding Chip Coldwell
2006-08-01 19:46 ` Reiner Steib [this message]
2006-08-01 20:38 ` Chip Coldwell
2006-08-01 20:40 ` Chip Coldwell
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=v9slkgnsrr.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+from-uce@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=emacs-devel@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.