[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regex encoding

From: Reiner Steib
Subject: Re: regex encoding
Date: Tue, 01 Aug 2006 21:46:32 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

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 ()
  (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/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]