all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: fang yu <smartcarnew@aliyun.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: When closing an org file, if the file contains Chinese characters, it always prompts me to choose an encoding system.
Date: Sat, 24 Feb 2024 17:36:08 +0000	[thread overview]
Message-ID: <87edd1wyrb.fsf@localhost> (raw)
In-Reply-To: <AF3F91C6-D334-453F-86C8-7CF62156C7B2@aliyun.com>

fang yu <smartcarnew@aliyun.com> writes:

> I encountered an issue while using org-mode. Whenever the file contains Chinese characters, it always prompts me to choose an encoding system.
>
> My emacs version is 29.2 and my org-mode version is 9.6.15, and  I have language environment setting below 
>
> ;; set language environment
> (set-language-environment 'UTF-8)
> (set-locale-environment "UTF-8”)
> ...
> Can anyone tell me if there is a way to solve this problem? Thank you in advance.

This is unlikely anything related to Org mode. Something about Emacs
language config.

I personally have
(set-language-environment "English")
(prefer-coding-system 'utf-8)
(add-to-list 'file-coding-system-alist '("\\.org" utf-8))
in my config.
Although, it is copy-pasted from somewhere.

It may help to study the output of M-x describe-language-environment
while inside Org buffer.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


      reply	other threads:[~2024-02-24 17:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-18  5:36 When closing an org file, if the file contains Chinese characters, it always prompts me to choose an encoding system fang yu
2024-02-24 17:36 ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87edd1wyrb.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=smartcarnew@aliyun.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.