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: Multiple encodings in one file Date: Mon, 29 Apr 2024 04:20:54 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31675"; mail-complaints-to="usenet@ciao.gmane.io" To: "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 06:33:50 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 1s1Ii6-00083I-L4 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 29 Apr 2024 06:33:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1IhK-0002CD-7j; Mon, 29 Apr 2024 00:33:12 -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 1s1Iac-0000xp-Og for help-gnu-emacs@gnu.org; Mon, 29 Apr 2024 00:26:20 -0400 Original-Received: from mail-bn8nam11on20701.outbound.protection.outlook.com ([2a01:111:f403:2414::701] helo=NAM11-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 1s1IaX-00051J-QX for help-gnu-emacs@gnu.org; Mon, 29 Apr 2024 00:26:06 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T65JWZxWUTa5Zow+x/C+8A4/iYOpVOP6IYO0wil1IjXYu36EgbGvge16y5PJMRsnsh1sYSGzjfSnXL1inZnudGgiXvU+IjqVY6gYed+YjDtqn5+BEZ6hmKGGqYkX9ZYEdJkFx3IgwIsxhv4po/TGsU7fZcFjg/fz4Tj/PPyydC8WlaDeiDm9JcBitnTLxzdrnoF4FeGs9xY0Dzae+CormlLAHTa5zjV7KbPad772jqsLt2athAh1SXKqYwn5XqQn3ka5SObRb4YSky5yWIzxNdYwMjAv5Yny2Xy622x/u8J8LN1Q7qSkw2jnxsFf0clcTmIdtZV1QEEfaOAJ2aKlwA== 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=Ib/pJPVUSA+434InNGYz9ZfF069oGSMxYoUVut7PE6o=; b=EpwxsNBB/GdN/94dLD5GFk4UHOdZp32RerFJt8tEXWt2KKhT9xG37+g/oYmBMOW9Ncw1lpIVb/uEX1l74Uc5+7QGRWD7ULPjMiEN9Oyv3Fp7cagNEUUvWP3vIYuI6eIQyDUngcJ1Yfg8XJMn2/RtGVS9jLO4EBTecaXzvRlr6fwlkTWx3fQ9WsvwDd1Eo3komCx2j9fZ8VXRSuf3baXg3IHvfqAL2rSpUGjwL9hlfLZilMVjl7DOT6u0BZTno6qZ6AqlLOlqRX29GlxhJ9xtUPh7jzzVXodGZJNnta93N2dU0PVKiVXIn5geTnU7CRFx9l1XfIuHbF0ZM2+XV6c9Qw== 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=Ib/pJPVUSA+434InNGYz9ZfF069oGSMxYoUVut7PE6o=; b=nRsYwWqoHqL1kP4eMpDeJj5VIFK0FR3cxqj1uilRTqUsxzlkrzyUq82xYdmTEeg2yT06IAPaSqyt4bAoBLJfjAvhq0OwGheOtDJAVk+kCFDst245t8oaMC9lUmiVJyKSFw/PPW53CF21ILg5XosVCbJW9be4hMrNBC3t75qDdiM= Original-Received: from PH0PR01MB6602.prod.exchangelabs.com (2603:10b6:510:a0::7) by SA0PR01MB6428.prod.exchangelabs.com (2603:10b6:806:eb::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Mon, 29 Apr 2024 04:20:55 +0000 Original-Received: from PH0PR01MB6602.prod.exchangelabs.com ([fe80::5d8b:4c18:ea14:3f24]) by PH0PR01MB6602.prod.exchangelabs.com ([fe80::5d8b:4c18:ea14:3f24%4]) with mapi id 15.20.7519.035; Mon, 29 Apr 2024 04:20:54 +0000 Thread-Topic: Multiple encodings in one file Thread-Index: AQHameY4mKSP1S4V+0CQey1THwfYtw== 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: PH0PR01MB6602:EE_|SA0PR01MB6428:EE_ x-ms-office365-filtering-correlation-id: eec61f84-f35f-4b3a-2a6f-08dc6803c2e5 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: =?iso-8859-1?Q?oToKIzIRTP6zTNIU1SnDT+ffzEiMGwXv/6i7SgHFGEGSPAfVpDJGZ+YU/x?= =?iso-8859-1?Q?+JH+Ytw78HOSTvfrZJlydtajmF64DOJSQNvm11Zggzg06nH6P2FKvsQT2O?= =?iso-8859-1?Q?iqxHwMHvmUXczYIICHGdvdY8UW2HprhioOLWJ/mGswcSwItsCllh9EYSo5?= =?iso-8859-1?Q?mEOlaPPyTW8z1tJcFEdZZ0dMNXDhmIL/R7B26ksMK+igr+YpFjDfgv8/d+?= =?iso-8859-1?Q?X4EQX3v1NvnErYxB9zRvaYQLc8o6FhX/2MmYlen5LaQCUy33eat1zgOTyE?= =?iso-8859-1?Q?iUFsAviRmvL/rR9orBo48LWhhidlWOAEBx7GjvSsSioCTC/Z0wh12NXzy1?= =?iso-8859-1?Q?eGvOzu7QM/3dIKOK968DbJx+XfoIqVlzos/GHETX/S8cZ9KI8HtwPrn2rf?= =?iso-8859-1?Q?Th37SeorQiIvt68Bm2AgXy1Y9uE6576KFMr7cEDnEBn1Ks2zfsxdU6h1nE?= =?iso-8859-1?Q?ng0W/GSEB9EEUINVP9OZGqaD/SNOET2+io4/QMYhykI7B7uXtdyqMvzy52?= =?iso-8859-1?Q?fIrAsJYqFhM+9M530CtLHAXErMPKOQQ4f9QlkGlpsjZIA7SU6mDglfKEvl?= =?iso-8859-1?Q?mULi9dje58YbjOtGnV/gAjxEn1Ta+JBzbHA/ZhJ4NNXETrhUWJ+yyUZxW0?= =?iso-8859-1?Q?9Ny x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR01MB6602.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: =?iso-8859-1?Q?LH6EVpMyfydWeKajBpekZqzAf+k87TpyIZt14+BCMz3UW/46x+mQAb3p5W?= =?iso-8859-1?Q?kvSscLW1boIgdwJJz0b4aGntmrlfwF7OtuvSzTYp26w0qnPug7EeyDFoRE?= =?iso-8859-1?Q?wqBsHodG5wWRMvOqCe2rPfjwrRMwkshmRLfMs8Mj8le6mrAj+mHeikkeuG?= =?iso-8859-1?Q?hR9NZ2cfW7QmT8IPgeNSbtUYuZbo+t7uwSRXN2DgxMC0A0KFc9Onn3QSms?= =?iso-8859-1?Q?j11PuE6A/8nRLGIHL0w3O2RqnLxNdHFxWqXNmhac3tCL30/lwlcMNSq7+J?= =?iso-8859-1?Q?ewNtzlZEmJ8H9PLrSWkvD3px0yiFhX+zZzfaWqQ5yulgBOphSRUpzuJm+j?= =?iso-8859-1?Q?j72fynYbnsy7eJDFszbdgcBjZU7Wv1LLjBXQdPMUSqiL+1u4DHNks3VcE1?= =?iso-8859-1?Q?r633h6A1YbArrEJuUrS5HcapnCm8fww1N5c8j5EAFhcDb3Smz8ZyY9ghJh?= =?iso-8859-1?Q?emmzT0a/q8G36YkKdO7t4JX9L2gkNayk+62N3sam0EDDhyJQ0Q6dZWtvYa?= =?iso-8859-1?Q?FIonZnOAXtmEh29lff9KVbVzop3rNlJ9yCbMJc/NiI/nOUNUuxzwM+sjP6?= =?iso-8859-1?Q?hPET33SujNUlh2x5iM1ziU5BPQ9UrLDU+MK3PtiHBp+VU9AG9eHK7pu5ns?= =?iso-8859-1?Q? X-OriginatorOrg: missouristate.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB6602.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: eec61f84-f35f-4b3a-2a6f-08dc6803c2e5 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2024 04:20:54.3371 (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: djfYb0btBnwhy/lcM8l8sppkWe83s1iRC5KfrVZz+mHIB01yCJz3516f6lLmBUBd03ZSSLWQB4yBnU7S7BLn6hjNAEE1PFoXxgXi9yv4by4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR01MB6428 Received-SPF: pass client-ip=2a01:111:f403:2414::701; envelope-from=JLambert@MissouriState.edu; helo=NAM11-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:146493 Archived-At: Question: If I open a file that uses one encoding in one part of the file a= nd another encoding in another part of the file, and also uses multiple cha= racter sets, can I edit a small part of it in Emacs, using UCS (Unicode), w= ithout Emacs changing the rest of the file? Background: I work in a library ( the book kind) and use MARC files (https:= //www.loc.gov/marc/). MARC is a file transmission format that may have mult= iple "records." These records may contain text encoded in ISO/IEC 10646:202= (Unicode) or MARC-8 (https://www.loc.gov/marc/specifications/speccharintro= .html), an encoding used mainly/only by libraries for MARC files. Libraries= may have records of both types and one file may have records with both enc= odings, and multiple character sets. I'm attempting to write a major mode t= o work with these files in Emacs. Emacs does not recognize the MARC-8 encod= ing. Thanks for your help, Joshua Lambert Librarian Missouri State University