[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: decode-coding-string question
From: |
Dmitry Dzhus |
Subject: |
Re: decode-coding-string question |
Date: |
Fri, 15 Aug 2008 20:06:59 +0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Eli Zaretskii wrote:
>> From: Dmitry Dzhus <dima@sphinx.net.ru>
>> Date: Fri, 15 Aug 2008 02:19:11 +0400
>>
>> Ted Zlatanov wrote:
>>
>> > This should decode to нуль but doesn't (I get the same string instead):
>> >
>> > (decode-coding-string "íîëü" 'cp1251)
>> >
>> > Am I missing something obvious? Do I need to encode the string to
>> > something else?
>>
>> 0. «íóëü», not «íîëü»
>
> That's not important, the original problem remains, even with a
> different spelling of the word.
That was nitpicking somewhat irrelevant to unibyte-multibyte problem:
Ted expected to get «нуль», and it's «íóëü», though the string he
originally provided — «íîëü» — decodes to «ноль»; however, both «нуль»
and «ноль» mean «zero».
--
Happy Hacking.
http://sphinx.net.ru
む
- Re: decode-coding-string question, (continued)
- Re: decode-coding-string question, Ted Zlatanov, 2008/08/15
- Re: decode-coding-string question, Eli Zaretskii, 2008/08/15
- Message not available
- Re: decode-coding-string question, Ted Zlatanov, 2008/08/18
- Re: decode-coding-string question, David Golden, 2008/08/18
- Re: decode-coding-string question, Eli Zaretskii, 2008/08/18
- Re: decode-coding-string question, Kevin Rodgers, 2008/08/19
- Message not available
- Re: decode-coding-string question, Ted Zlatanov, 2008/08/18
- Re: decode-coding-string question, David Golden, 2008/08/18
- Re: decode-coding-string question, Ted Zlatanov, 2008/08/19
- Re: decode-coding-string question, Nikolaj Schumacher, 2008/08/19
Message not available
- Re: decode-coding-string question,
Dmitry Dzhus <=
Re: decode-coding-string question, David Golden, 2008/08/14