[Top][All Lists]

[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 <address@hidden>
>> 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.

reply via email to

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