From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id MP/hKmYo2mWNTwAA62LTzQ:P1 (envelope-from ) for ; Sat, 24 Feb 2024 18:33:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id MP/hKmYo2mWNTwAA62LTzQ (envelope-from ) for ; Sat, 24 Feb 2024 18:33:26 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hYPnjF1V; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708796006; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=nAe6mhjq6QyezilCa6VTU0vguNy+7L5ZcLAcfV5SBN8=; b=AZyPbA+1XqWk2cA63IKtFGmaIRgBidhCse4/ci9jbBSxBiK1y25/ck6wynUT1wKBq4Ewnl o7j2qjNf/SuRFYtULwgkCWAfi9osQ0y01UsmsIHN9VkuvrKD7t6GSdG+UW9L/PCQILSmyO PTx0k8sHrmuQxCopztxh1LmQya6Nrna2j+xj/GxOToBopVt5nZvRgFAneRFV8ki49C56tF 23L5aXcZk6/PS25RL6zDx3o06oEr2SETYp7k+LJsYaSa49rnEdOWGYBgYn6wI9dnn6qRM1 NxMEvqylnASAI8XPNbJeas8pBopf9ukPATwSC74cS/1pnUsMgC6QfalFwdYMdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hYPnjF1V; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708796006; a=rsa-sha256; cv=none; b=SnM6z+wWBjkEE+LnaXCAFqYQj527NOEHVfP6kIpiGsXELaPTJ1OeLnsmSg0bEd9myzYCkq 5I+cMme6PtjIeQ+mBIJIcXiwrOBre8lpOJdv21RVAEVI7MEKuJSrPywTRj3WZ2l5eSzKU6 59C+3f52bnPGNdGG0eptByeRfUbzJfvWKiR1q7ddaow5cwz5WYzhlpMb6vaenAs2Brpg4e 87DdJ3aJ/KnXuVPPQ4xf2ISnpThAavvDsqv62/QUFfBqTq2AQ/YE0m07W5J4sOQf67JTpw 5I4BZ4HDscw5zcqBbTCMvNQptNOPU8iKxjAyVn+ygoAVaQCazOoTqLLJ6Dd8Aw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 76C2368AD9 for ; Sat, 24 Feb 2024 18:33:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdvt5-0000Oe-Mq; Sat, 24 Feb 2024 12:32:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdvsz-0000N3-Qk for emacs-orgmode@gnu.org; Sat, 24 Feb 2024 12:32:34 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdvsv-0007GH-0j for emacs-orgmode@gnu.org; Sat, 24 Feb 2024 12:32:28 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 26F8C240101 for ; Sat, 24 Feb 2024 18:32:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708795942; bh=IbMxT1vcuAMGPyHKwnabeBhGv0dtwB78sf9/UExoHdA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=hYPnjF1VG+gnSHOlArRuVAjoluFzhv1SWmD79mJBR2dE6uFNNSG01lGJyeGlnRhDb cGeFrgdqaMJwke5fl305PSyXuBa6g8VqZMRSYJqSgruw7hPNSV1WDNTwmjoovGE5CK kaHWTNCDwL8EF676A7b3k6my/3G7kjTKYr1g/YzX6uvrauIoXPMZTnIJLfwzPgP5Lp n/4Z6ajl1uPH46KnBI+qGLvTkc3qmVZ3yYltVidUpG0p/14ay2cWWPf9bKmrzVM6pl EHLspdTPZLjTrbyP7xGH2cKvBoVt6sMsT2RNuEeSXIAY/JqJTpsvuUH4FrEkg+cnHN IY1rKI8YkdGXw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Thv8P4nvKz9rxN; Sat, 24 Feb 2024 18:32:21 +0100 (CET) From: Ihor Radchenko To: fang yu 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. In-Reply-To: References: Date: Sat, 24 Feb 2024 17:36:08 +0000 Message-ID: <87edd1wyrb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -9.45 X-Spam-Score: -9.45 X-Migadu-Queue-Id: 76C2368AD9 X-Migadu-Scanner: mx11.migadu.com X-TUID: sM2nfnb2aPJa fang yu writes: > I encountered an issue while using org-mode. Whenever the file contains C= hinese 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 l= anguage environment setting below=20 > > ;; set language environment > (set-language-environment 'UTF-8) > (set-locale-environment "UTF-8=E2=80=9D) > ... > 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. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at