[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34215: 27.0.50; Provide elisp access to Chinese pinyin-to-character
From: |
Eric Abrahamsen |
Subject: |
bug#34215: 27.0.50; Provide elisp access to Chinese pinyin-to-character mapping |
Date: |
Fri, 01 Feb 2019 11:15:08 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Eric Abrahamsen <eric@ericabrahamsen.net>
>> Date: Fri, 01 Feb 2019 08:27:08 -0800
>>
>> >> + (coding-system-for-write 'utf-8-emacs))
>> >
>> > This should be 'utf-8-unix. There's no reason to write out stuff in
>> > our internal encoding, as the file is not supposed to have any
>> > characters not representable in UTF-8.
>>
>> Oh, okay. For my information -- is that not platform-dependent?
>
> No, the defaults are platform-dependent. utf-8-unix is an explicit
> specification of an encoding, so it leaves nothing to the platform.
>
>> I noticed titdic-cnv.el has a utf-8-emacs encoding cookie at the
>> top.
>
> utf-8-emacs is the internal representation of characters used by
> Emacs, it should only be used when some of the characters might not be
> expressible in UTF-8 (i.e. they are beyond the Unicode codespace).
Interesting, thank you for this background.