[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unicode and text editors
From: |
Stefan Monnier |
Subject: |
Re: Unicode and text editors |
Date: |
Sun, 08 Dec 2024 22:35:20 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> Should we comfortable use UTF Characters in source code when
> using Emacs?
In source code, the main issue is not whether another editor will
display it properly but whether the other tools that use the file will
handle it properly.
Usually this will depend on the programming language, where the
definition of the language usually clarifies which kinds of encodings
and/or charsets are allowed (and where, since the rule can be different
in different parts, such as inside comments or strings).
E.g. Emacs Lisp uses utf-8 (since Emacs-24.4) and supports the use of
basically any Unicode characters in source code, such as inside
identifiers.
[ BTW, "UTF characters" is kind of meaningless. You'll want to learn to
distinguish OT1H characters, and OTOH the encodings that can be used
to represent them as sequences of bytes. ]
Stefan
- Re: Unicode and text editors, (continued)
- Re: Unicode and text editors, W. Greenhouse, 2024/12/08
- Re: Unicode and text editors, Eli Zaretskii, 2024/12/08
- Re: Unicode and text editors, Heime, 2024/12/08
- Re: Unicode and text editors, Eli Zaretskii, 2024/12/08
- Re: Unicode and text editors, Heime, 2024/12/08
- Re: Unicode and text editors, Eli Zaretskii, 2024/12/08
- Re: Unicode and text editors, Heime, 2024/12/08
- Re: Unicode and text editors, Eli Zaretskii, 2024/12/08
- Re: Unicode and text editors, Heime, 2024/12/08
- Re: Unicode and text editors, Eli Zaretskii, 2024/12/08
- Re: Unicode and text editors,
Stefan Monnier <=
Re: Unicode and text editors, Stefan Monnier, 2024/12/08