From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Lambert, Joshua D" Newsgroups: gmane.emacs.help Subject: Re: Multiple encodings in one file Date: Mon, 29 Apr 2024 21:07:42 +0000 Message-ID: References: <86plu8skew.fsf@gnu.org> <86jzkgq8v0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31382"; mail-complaints-to="usenet@ciao.gmane.io" To: Eli Zaretskii , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 29 23:13:45 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s1YJl-0007zj-1b for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 29 Apr 2024 23:13:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1YJ1-0001vA-QW; Mon, 29 Apr 2024 17:12:59 -0400 Original-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 1s1YIt-0001tl-7K for help-gnu-emacs@gnu.org; Mon, 29 Apr 2024 17:12:51 -0400 Original-Received: from mail-bn8nam12on20700.outbound.protection.outlook.com ([2a01:111:f403:2418::700] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s1YIp-0000Hh-CT; Mon, 29 Apr 2024 17:12:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mJay96XAGYDGhr0O9sFBg1lP/aDtWsxMpszuPvEcBpWdntJ4wcJ8sD1fJEy75IslzAP3qVALbOs5BWHq3CIgJXaEX/aULPr6LEjupfn9wIg+hkRZbXGrt6zUzEsk1P9+NUcX+/dtbQgAvWITLr7TRxJ5VnQ4dmEud6QiyEwxtb80S0O+S27s8G5njTsQ93BlqjxzpeyhRYuyTQPlHSpqOIOQynCeLrfzA8ST46XN089Ubqhb1Xy/YqZYA/y5KfyGOXLIx6ZtDkPwrNvioEoEtFD+qDqGTFX12DCQkOpORoJVENeCLTk+IhhKG6+hsn+60dmwPieNuI+BRw3i80XO+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ylu6J8t7NRGDJ8T39l3m9OERYTGGEPWoHiVCWypLR9g=; b=OxzuLtldmIjTBDnBPfLXYPHK1X+lHlDx6berCH6i4UMXBFrYN+pR5tX29pGlHHra08MHF+AB1DHqj+hRMKmIBPkhxr12vvV/I3NW9wh88V6WPrAuxaBUe1EpNGM8hKDRcjYHqnFfvILMdUMkfmTKxuBE/HHW9+RK2id9WT1SFzetO88Yl0VEe2GQwUMGYKnBCfJmkcp/xXD2TMVT9HbPoM5zhzBJC7CbwbkTz1RVhhN90uis0p4xrEAsRPosHSS5WM2WiXEhr0oOh1dcc3llg9gpCUQzb2U/hrxef3OXgx3R2we5v9FyLEtFr0vUS95RDeQIlRfMuB40jB78puQkOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=missouristate.edu; dmarc=pass action=none header.from=missouristate.edu; dkim=pass header.d=missouristate.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=missouristate.edu; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ylu6J8t7NRGDJ8T39l3m9OERYTGGEPWoHiVCWypLR9g=; b=Um629ntbC51e9wjkq/w3F99ZOR2/yAbFh7hmePwl0g5d3HqNSgzRDv+w1CISsF9+E465R5NE5M2uALDMKa3OwYfYkD/cW0wWcnnIO3lLHBt/MToL8hdH6WL00it7THtpu0cxRPqvqw99gXVrw3lxcBMyOs6gKnFo7hKcUIOgH4Q= Original-Received: from SA1PR01MB6605.prod.exchangelabs.com (2603:10b6:806:1a3::14) by MN0PR01MB7729.prod.exchangelabs.com (2603:10b6:208:379::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.32; Mon, 29 Apr 2024 21:07:43 +0000 Original-Received: from SA1PR01MB6605.prod.exchangelabs.com ([fe80::99bc:ffa2:a45e:a4b7]) by SA1PR01MB6605.prod.exchangelabs.com ([fe80::99bc:ffa2:a45e:a4b7%7]) with mapi id 15.20.7519.031; Mon, 29 Apr 2024 21:07:42 +0000 Thread-Topic: Multiple encodings in one file Thread-Index: AQHameY4mKSP1S4V+0CQey1THwfYt7F+2GEggAC3l4GAAA9mH4AAHwTZ In-Reply-To: <86jzkgq8v0.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=MissouriState.edu; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA1PR01MB6605:EE_|MN0PR01MB7729:EE_ x-ms-office365-filtering-correlation-id: 2f2bc3b1-bd15-4ccb-bed8-08dc68906939 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|1800799015|376005|366007|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?wQi0H9dSmGJcqMwEMYZygcdq+rOkb0X8PrOpbdH0MbRUwYxWSSpsYdIwu7n0?= =?us-ascii?Q?hTRhOFQykuqGVZ25hhTL+slYysFDmvXEZZNQPM9jMoW2Fs/YahFI7NNhYJE8?= =?us-ascii?Q?qJZdMqYk7p4CSTfhc/CVAyw76eGtDg6uc5srILwEGmhLeVKcV6nuy/1zn9do?= =?us-ascii?Q?YDUbsCAilXMpXY/pHkqSGCZh9PZ+fWWP2SmS9hJpgttpCSk+9ub3eXIQcheC?= =?us-ascii?Q?+J6+NLCTzcR9Lbdk9Fo7cd773iKrnmwslfWjzbCZ7nMEg4hQP94Vn6CtOICC?= =?us-ascii?Q?8lwV+iogUTHoaRGPnxZtiufBAE/QFWY5IeXQTT9esWMjCkOUVLNh3Io+jdaN?= =?us-ascii?Q?FTReu2FFpF2Tu6ZP3KN+xR8YMgT1JmabByEpqRqj8adVhbkItvWxZIMIK3QV?= =?us-ascii?Q?w76t2ocuWWXr5YVLb2y8dSsqt5GEHG/VMiNNyX/ZHJcLChPo/qqobHHRiTUE?= =?us-ascii?Q?5Q85xmOUm2LEdRhExSSGM3+K0Sd5hcjC6doRZc+EqQVfUIC8XaECFvXZj5z5?= =?us-ascii?Q?T5D25pCQKOCrucBDjvMQyScajrrfRocNQdYOen5JGm8s3cph8bG+iCE3osWU?= =?us-ascii?Q?p9JqWS65wpQ/YFKlaUr5Tw/MYgui3ZTW6rJQBirJOHVTj6biyyf22SU4gi/C?= =?us-ascii?Q?ovpG6 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA1PR01MB6605.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(376005)(366007)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?CABTq+Yu4VlCLxYEYZvjeVHesoykzRufJChi38YcsziO+bKGbBEYRLsoy1Qe?= =?us-ascii?Q?dcwc4NNN6mTmbGwAvtxClWyiPcjkucoHsbuzCpSYA+HLAKZkO1jGzhSmlRQC?= =?us-ascii?Q?tU29l4EA+A76bg5XGJfRAu2tJHsbO3Gix39k9T8WJCGsAAPS968cLuMLvUsS?= =?us-ascii?Q?RgMPjIOm1OfdxQ7eNIpmB0aFu3oT/sO50jq7T5q6vbeIRpMkFFx5AW3y1KOw?= =?us-ascii?Q?da3+DVo+SeWmXSdqwh/kH8f5viM64rdbG/KJfnIiMBbJKFESUQX6jpYGAUAI?= =?us-ascii?Q?Qeo8+4yIGNTElAsL9+HOuw7NfD6s3uAWcZc2UAQDnDJtxpgI+SdO7KHEkzMB?= =?us-ascii?Q?ZxIxjEEnxnqK9CaGkbjXLdOoDq4Hx4KyA23Z0fkPIh67EUPcImvovGgv/j5N?= =?us-ascii?Q?xl+Jy5eduuWYn1OAUqv8nDxFsNXy71Jl87suWXh+X/8+npgQMxOvlSwNK3Bi?= =?us-ascii?Q?KqesQCVwukke5LAec5ebI2o0uZJ0roQ8KEY1fKsI462XKLqTocy6ubgZ6ImF?= =?us-ascii?Q?8a+NKjMXspxEHfzXVuvktkQAMlXRS7yfw1vaiePcq+N+7g+xxumxbMLP3tMp?= =?us-ascii?Q?iSf0sYQr/UD090VhnNgDPyQ7qI7XtG8XmBGV5IkpaX6wWNAezTS90HP/95eK?= =?us-ascii?Q?a6 X-OriginatorOrg: missouristate.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR01MB6605.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2f2bc3b1-bd15-4ccb-bed8-08dc68906939 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2024 21:07:42.9233 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: cad830e4-554f-4361-bae5-c865233fb77f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OCXDYgw4m8+KLj4BFKb+4tOOidjpSq2glcjRDM6O8NxcLv64qqW4skKk2gDDyJMH0pg3HsplGI5HQPNqcb6LYN+WoMRL+mBd29krEysbmvw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR01MB7729 Received-SPF: pass client-ip=2a01:111:f403:2418::700; envelope-from=JLambert@MissouriState.edu; helo=NAM12-BN8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146504 Archived-At: Thank you very much. This is helpful. Joshua ________________________________ From: help-gnu-emacs-bounces+jlambert=3Dmissouristate.edu@gnu.org on behalf of Eli Zaret= skii Sent: Monday, April 29, 2024 2:14 PM To: help-gnu-emacs@gnu.org Subject: Re: Multiple encodings in one file CAUTION: External Sender > From: "Lambert, Joshua D" > Date: Mon, 29 Apr 2024 18:45:52 +0000 > msip_labels: > > Thank you for the time. What you said gives me some hope but I have a fol= low-up question. If I visit a file > literally, make a change, and save it, the file seems to be different onl= y where I changed it. Is that true? If you save it while binding coding-system-to-write to no-conversion, yes. IOW, you need to disable encoding while saving. > If so, then does the following seem reasonable. > > 1 Find a file literally. > 2 The user will accept that some characters will show octal codes or some= thing similar. > 3 Edit the records where understandable and possible. > 4 Save file. That can be done, of course, but note that UTF-8 encoded text is not legible, unless the characters are all ASCII. > Furthermore, if I want to try to convert the MARC8 encoded records to UTF= 8 (mappings are available), is it > reasonable/possible for me to do that in the buffer after using find-file= -literally or would it be better to do that > using hexl-mode, or another method? You can convert MARC-8 to Unicode (not UTF-8, since Emacs uses internal representation that is not exactly UTF-8), yes. But then you will have to convert back to MARC-8 when you save the file, at least in the parts that the user didn't edit. This message originated outside Missouri State University. Please use cauti= on when opening attachments, clicking links, or replying.