[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Automatic recognition of some specific coding systems
From: |
Jürgen Hartmann |
Subject: |
RE: Automatic recognition of some specific coding systems |
Date: |
Tue, 3 Mar 2015 23:58:23 +0100 |
Sorry for the delay of my response: I just was busy to recover my system
from a nasty hard disk failure. But now mail service is back up again...
So, thank you, Eli Zaretskii, for giving this solution the right twist:
>> So one could think about a regular expression
>> that matches this unique EOL pattern.
>
> A more reliable test might be characters whose codepoints are between
> 128 and 159: those should generally be absent from ISO-8859 encodings.
> (Emacs doesn't use this fact for good reasons, but in your specific
> case those reasons should not matter, I think.)
That's great: I didn't recognize this distinctive feature. Of course this is
by far the better test: It is more specific, since it is per se related to
the actual task. I think this is the approach to favor.
When my system is restored again, I will try to implement it, reporting the
findings.
Juergen
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: Automatic recognition of some specific coding systems,
Jürgen Hartmann <=