Fact-checked by Grok 2 weeks ago

Mac OS Roman

Mac OS Roman is a single-byte character encoding scheme developed by Apple Inc. for the classic Macintosh operating system, extending the ASCII standard to support 256 characters including accented letters, symbols, and diacritical marks primarily for Western European languages. Introduced with the original Macintosh in 1984, Mac OS Roman served as the default encoding for the Roman script system (script code 0) in early Mac OS versions, enabling text display, input, and processing through components like QuickDraw, TextEdit, and the Script Manager. It consists of the standard ASCII characters in the range $00–$7F, augmented by 128 extended characters in $80–FF for features such as uppercase accented forms (e.g., Á at E7), mathematical symbols (e.g., π at B9), and typographic elements (e.g., the Apple logo at F0). The encoding was designed for left-to-right, non-contextual text handling, with regional variations for languages like French, German, and Turkish by reassigning certain code points in international versions. In practice, Mac OS Roman integrated deeply with Macintosh hardware and software, using resources such as 'KCHR' for keyboard mappings and 'itl2' for sorting and case conversion, while supporting dead keys for composing accented characters (e.g., Option-E followed by e yields é). It was the foundation for file-system operations, font rendering in bitmapped and outline fonts, and utilities like string comparison via RelString. A notable update occurred in Mac OS 8.5 (1998), remapping code point 0xDB from the currency sign (U+00A4) to the euro sign (U+20AC) to accommodate the introduction of the euro currency. Although largely superseded by in Mac OS X (now macOS) starting in 2001, Mac OS Roman remains available as a legacy encoding option in modern Apple frameworks, such as Core Foundation's kCFStringEncodingMacRoman constant (value 0), for compatibility with older files and applications. Its mappings to are standardized and documented for conversion purposes, ensuring ongoing support for historical Macintosh data.

History and Development

Origins in Early Macintosh Systems

Mac OS Roman originated with the launch of the original Macintosh 128K computer on January 24, 1984, as Apple's proprietary 8-bit scheme tailored for the system's text-handling capabilities. Developed to meet the demands of the Macintosh's , it extended the foundational character set used in the machine's and software, enabling robust support for in early applications. The encoding built upon an initial character repertoire of 217 glyphs, primarily designed to accommodate English and major Western languages through the inclusion of diacritics, punctuation variants, and typographic symbols. Apple's design motivation stemmed from the Macintosh's emphasis on and creative workflows, where basic 7-bit ASCII proved insufficient for professional text composition involving accented characters (such as or ) and specialized symbols (like © or ™) essential for international documents and . This extension allowed the system to handle composite diacritics via combinations, such as the paired with letters, facilitating seamless input for multilingual content without requiring complex software add-ons. Implemented as the core text encoding in 1.0—the operating environment shipped with the Macintosh 128K—Mac OS Roman functioned as the default script system for U.S. English localizations, ensuring compatibility with the system's fonts like and Geneva. The full encoding supported 256 characters in total, with the lower 128 positions (0x00–0x7F) directly mirroring the US-ASCII standard to maintain interoperability with existing computing standards and peripherals. This structure provided a solid foundation for text rendering via , prioritizing visual consistency and ease of use in the Macintosh's pioneering displays.

Standardization and Key Updates

Mac OS Roman achieved full standardization as Apple's primary single-byte encoding for the Roman script system with the release of System 6.0.4 in September 1989. This update expanded the character set from its earlier 217-character precursor to a complete 256-character repertoire, incorporating high-ASCII extensions for accented letters, symbols, and diacritical marks while maintaining compatibility with the baseline range. As the foundational encoding for the Macintosh's Script Manager, it became the default for text handling in U.S. English and other Western European languages, ensuring consistent rendering across fonts and applications in the evolving Mac OS ecosystem. A significant modification occurred in 1998 with Mac OS 8.5, where Apple replaced the generic currency sign (¤ at code point 0xDB) with the euro symbol (€ at Unicode U+20AC) to support the European Monetary Union's adoption of the euro as a common currency. This change was implemented system-wide, affecting text rendering, input methods, and font mappings without disrupting backward compatibility for legacy content. The update reflected Apple's commitment to aligning its encoding standards with international economic developments, and the euro variant has remained the standard in subsequent macOS releases. For internet compatibility, the (IANA) registered "macintosh" as the official charset name for Mac OS Roman, with aliases "mac" and "csMacintosh," facilitating reliable transmission of Macintosh-encoded text in , , and other protocols. Although the core encoding prioritized English and standard alphabets, minor adjustments accommodated localizations like Swiss French and through script-specific resources in the Script Manager, such as tailored layouts and sorting rules, while preserving the underlying 256-character structure. These adaptations ensured broad usability across European regions without requiring a divergent encoding scheme.

Technical Specifications

Encoding Structure

Mac OS Roman is an 8-bit single-byte that defines 256 code points ranging from 0x00 to 0xFF. This fixed-width structure allows each character to be represented by exactly one byte, facilitating efficient processing on early Macintosh hardware without the complexity of variable-length sequences. The encoding extends the 7-bit US-ASCII standard by maintaining full compatibility in its lower half, where code points 0x00 through 0x7F are identical to ASCII. This includes 33 control characters consisting of those from 0x00 to 0x1F (such as NUL at 0x00) and DEL at 0x7F, along with 95 printable characters from 0x20 (space) to 0x7E (tilde), covering text and . The adherence to ASCII ensures seamless interoperability for standard Latin scripts while reserving the upper range for enhancements. The upper half, comprising code points 0x80 to 0xFF, allocates 128 slots for proprietary extensions defined by Apple, including diacritics, symbols, and typographic elements tailored to Western European languages and Macintosh-specific needs. Unlike ISO 8859-1, which follows an for its high-byte assignments, Mac OS Roman's upper range is vendor-specific without adherence to a broader body beyond Apple's . This design choice prioritized Macintosh ecosystem cohesion over universal portability, resulting in a self-contained encoding that lacks multi-byte or variable-length mechanisms.

Character Repertoire

Mac OS Roman, as an 8-bit character encoding, defines a repertoire of 256 code points, with the lower 128 (0x00 to 0x7F) mirroring the ASCII standard, including 95 printable characters from 0x20 to 0x7E and control codes otherwise. The upper 128 code points (0x80 to 0xFF) extend this base with 128 additional printable characters tailored for enhanced text representation in Western contexts, resulting in a total of 223 printable characters across the encoding when excluding controls (0x00–0x1F and 0x7F). These upper-half characters are grouped into categories emphasizing diacritics for accented letters, mathematical and technical symbols, currency marks, and typographic elements. Diacritics include forms such as (0x80), (0x8E), (0x89), and (0x96), enabling support for languages like , , and through accented Latin letters and ligatures. Mathematical symbols feature (0xB7) for , (0xB0) for , and (0xB1) for plus-minus, alongside others like (0xAD). Currency symbols encompass (0xA2), (0xA3), and (0xB4), with the (0xDB) added in later updates starting from Mac OS 8.5 to accommodate the . Typographic characters provide punctuation and ornaments, such as (0xA0) for , (0xC9) for , and (0xC7) for left . Notable among the repertoire are Apple-specific glyphs, including the Apple logo  (0xF0) and the bullet • (0xA5), which were integral to early Macintosh interface and documentation elements. Overall, the encoding prioritizes Roman-based scripts for Western European languages, offering robust coverage for everyday text in those tongues but with notable exclusions: it lacks comprehensive support for non-Latin alphabets, such as full Cyrillic or Greek sets beyond mathematical operators, limiting its applicability to broader multilingual scenarios.

Usage in Macintosh Ecosystems

Integration with Operating Systems

Mac OS Roman served as the default and system in Macintosh operating systems from System 1.0 (released in 1984) through (2001), forming the baseline for text processing in Roman-localized versions such as those for the U.S., UK, and French markets. It handled essential system elements including file names, labels, and dialog boxes, ensuring consistent and display through the Script Manager's string-manipulation resources. In these environments, the encoding provided a 256-character repertoire optimized for Western European languages, with the first 128 characters matching ASCII for basic compatibility. Within the graphics subsystem, Mac OS played a central role in text rendering, where character code points directly corresponded to glyph indices in one-byte Roman fonts managed by the Font Manager. This direct mapping enabled efficient drawing of text via routines like DrawText and StdText, positioning along the graphics pen's baseline in the current graphics port, with styles, sizes, and modes applied at the system level. The integration supported seamless text output to screens and printers without additional translation layers for Roman script content. For international variants, Mac OS Roman was employed in various European localizations, such as those for and , through the Script Manager, which adapted keyboard layouts, sorting orders, and string comparison routines while retaining the core encoding. These systems overrode U.S.-specific behaviors for diacritics and but lacked comprehensive support for non-Roman scripts, limiting full localization to Latin-based alphabets. System 7 (introduced in 1991) enhanced diacritic handling in international text via updated Text Utilities in the Script Manager, incorporating the 'itl2' resource for routines like StripDiacritics and UppercaseStripDiacritics. These improvements allowed accented characters (e.g., to A, to e) to be stripped or case-converted accurately, supporting better multilingual input and output in Roman-localized environments without altering the underlying encoding.

Application and Font Support

Mac OS Roman served as the default character encoding for text handling in many early Macintosh applications, particularly those developed for and . Applications such as , Apple's bundled , natively supported Mac OS Roman for saving and loading files (.txt) and files (.rtf), ensuring seamless integration with the system's text utilities without requiring explicit encoding declarations. Similarly, Aldus PageMaker, a pioneering tool, imported and exported text files using Mac OS Roman as the standard Macintosh text encoding, often labeled simply as "ASCII" in import dialogs, which facilitated layout workflows involving accented characters and symbols common in Western European languages. In the realm of font technologies, Mac OS was integral to glyph mapping in both bitmap and outline formats prevalent on Macintosh systems. and , including Apple's bitmap fonts like and , incorporated glyph tables aligned with Mac OS code points to enable accurate bitmap rendering on screen and in . For instance, the character set, which defines Mac OS , ensured that characters from $20 to $FF were available in most outline fonts, though bitmapped versions of and provided partial support, prioritizing readability for common Latin scripts over full repertoire coverage. This mapping allowed fonts to render diacritics and typographic symbols directly from the encoding without additional translation layers. Developer tools and in the Classic Macintosh environment further embedded Mac OS Roman into string handling routines. In the Carbon and Classic , functions such as [DrawString](/page/Drawstring) in expected input as Pascal strings encoded in Mac OS Roman, using the current graphics port's text attributes (e.g., font, size, and mode) to render text at the pen location. This design streamlined application development by assuming Mac Roman as the native format for text measurement and drawing operations, with routines like TextWidth and CharWidth computing widths based on the encoding's assignments. Despite its ubiquity, Mac OS Roman's implementation in early applications revealed limitations, particularly in handling undefined characters during cross-platform file transfers. Many pre-1990s apps lacked fallback mechanisms for characters outside the expected repertoire, resulting in —garbled text—when files were opened on non-Macintosh systems or vice versa, as bytes above $7F were misinterpreted without proper encoding detection. This issue was exacerbated in workflows, where transferring Mac OS Roman-encoded documents to Windows environments often led to visual corruption of accented letters and symbols until later tools introduced explicit conversions.

Compatibility and Comparisons

Relation to ASCII and ISO 8859-1

Mac OS Roman maintains full compatibility with the 7-bit ASCII standard in its lower range, where bytes 0x00 through 0x7F map identically to the corresponding ASCII control codes and printable characters. This design choice ensured seamless with early computing systems and protocols that relied on ASCII, allowing Mac OS Roman text to display correctly in ASCII-only environments without alteration. In the extended 8-bit range from 0x80 to 0xFF, however, Mac OS Roman diverges from both ASCII extensions and ISO 8859-1 (Latin-1), prioritizing characters suited to Macintosh and Western European languages over international . Specifically, the range 0x80–0x9F in Mac OS Roman assigns printable glyphs such as (U+00C4) at 0x80 and (U+00EF) at 0x95, whereas ISO 8859-1 treats most of these positions as undefined or reserves them for C1 control codes, leading to potential rendering failures when Mac OS Roman text is misinterpreted as Latin-1. For instance, the © (U+00A9) appears at 0xA9 in both encodings, providing a point of overlap, but mismatches abound elsewhere, such as Mac OS Roman's placement of the † (U+2020) at 0xA0 compared to ISO 8859-1's (U+00A0) at the same position. Overall, while the two encodings share a substantial portion of their character repertoire—focusing on Latin-script letters with diacritics and common symbols—their positional differences result in only partial direct compatibility in the upper half. These structural variances frequently caused compatibility challenges in cross-platform data exchange during the pre-Unicode era. In and transfers between Macintosh systems and PCs assuming ISO 8859-1 as the default, Mac OS Roman text often appeared garbled, a phenomenon known as , where bytes intended as accented characters or symbols were rendered as unintended punctuation or controls. Historically, Mac OS Roman was tailored for the proprietary Macintosh hardware and font rendering introduced in 1984, predating widespread web standards that favored ISO 8859-1 for and protocols in the early 1990s, which exacerbated display issues on non-Mac platforms accessing Mac-generated content. Apple's inclusion of non-standard elements, such as the Apple logo (U+F8FF) at 0xF0, further highlighted its platform-specific focus, rendering such symbols invisible or substituted on systems lacking Macintosh font support.

Mapping to Unicode

The Unicode Consortium maintains an official one-to-one mapping table for Mac OS Roman, documented in the ROMAN.TXT file, which assigns each code point from 0x00 to 0xFF to a corresponding Unicode scalar value. This mapping covers the full 256-character repertoire of the standard variant, including standard ASCII in the lower half (0x00–0x7F) and Macintosh-specific extensions in the upper half (0x80–0xFF), such as 0xA3 mapping to the pound sign £ (U+00A3) and 0xCF to the œ ligature (U+0153); separate variant tables exist for international versions such as Croatian, Icelandic, Turkish, and Romanian. The table ensures lossless conversion from Mac OS Roman to Unicode for all characters, with the Apple logo at 0xF0 specifically assigned to U+F8FF in the Private Use Area (PUA). Round-trip compatibility between OS Roman and is generally preserved, meaning most characters can be converted back and forth without loss, as encompasses the entire Mac OS Roman set. However, an exception arises with the currency sign at 0xDB: prior to Mac OS 8.5 (pre-1998), it mapped to the generic currency sign ¤ (U+00A4), while post-1998 updates remap it to the € (U+20AC) to reflect the introduction of the currency. This change requires variant-specific handling for accurate round-trip conversions in legacy contexts. Apple's developer documentation supports these mappings through the Text Encoding Conversion Manager, which includes C functions such as ConvertFromTextToUnicode for programmatic conversion from Mac OS Roman (identified by the encoding constant kTextEncodingMacRoman) to scalars. These handle the one-to-one assignments and account for variants like the euro update, enabling developers to process legacy Macintosh text in modern Unicode-based applications. A notable exception in the mapping is the Apple logo glyph at 0xF0, placed in the Unicode Private Use Area at U+F8FF, which was not available for standardization until Unicode version 1.1 in June 1993. This PUA assignment allows proprietary rendering on Apple systems but lacks universal standardization, potentially leading to fallback glyphs in non-Apple environments.

Legacy and Modern Relevance

Transition to Unicode

Apple began integrating Unicode support into its operating systems in 1998 with the release of Mac OS 8.5, which introduced the Apple Type Services for Unicode Imaging (ATSUI) framework. This allowed for the rendering and input of text (specifically using UTF-16 encoding based on Unicode 2.1) while continuing to operate alongside the legacy Mac OS Roman encoding for with existing applications and files. The primary motivations for this transition stemmed from the limitations of single-byte encodings like Mac OS Roman, which were inadequate for supporting a wide range of global languages and non-Roman scripts such as , , and . Apple was a key participant in the development of starting in and co-founded the in 1991 alongside other companies including to develop a universal standard, sought to address the growing need for multilingual text processing in software and documents. Additionally, compliance with emerging standards, including the Multipurpose Internet Mail Extensions () defined in RFC 2046—which aligns with ISO/IEC 10646 (the basis for )—drove the shift to enable seamless handling of internationalized content on the . The full transition occurred with the launch of Mac OS X in 2001 (version 10.0), where UTF-8 became the default encoding for new text files and system interfaces, marking the deprecation of Mac OS Roman for modern development. To maintain compatibility with classic Macintosh applications, Apple introduced the Carbon framework, which ported APIs from the Classic Mac OS environment to Mac OS X and included on-the-fly conversion of Mac Roman strings to Unicode during runtime execution. This ensured that legacy software could run under emulation without immediate rewriting, while new applications were encouraged to adopt Unicode natively. Furthermore, Mac OS X favored Unicode Normalization Form D (NFD) for text storage, particularly in the HFS+ file system, to preserve compatibility with decomposed character representations from earlier Macintosh encodings.

Ongoing Support and Tools

Modern macOS includes built-in support for Mac OS Roman encoding to handle legacy text files. The iconv command-line tool, part of the system's core utilities, enables conversion between Mac OS Roman and contemporary encodings like ; for example, the command iconv -f macroman -t utf-8 input.txt reads a Mac OS Roman file and outputs it in . , the default , automatically detects Mac OS Roman files upon opening and displays them correctly, with options to manually select or change the encoding via the "Plain Text File Encoding" preferences if characters appear garbled. Similarly, the Finder's Get Info panel provides information about files to aid in file management and conversion workflows. Third-party tools extend this support for developers and archivists working with Mac OS Roman data. The Unicode Consortium maintains official mapping tables that convert Mac OS Roman characters to code points, facilitating integration with modern systems. In , the standard codecs module recognizes 'mac_roman' as an alias for this encoding, allowing seamless file operations like open('legacy.txt', encoding='mac_roman') to read and decode older documents without corruption. This ongoing support is particularly valuable for processing artifacts from the and , including PDFs, emails, and system files stored in digital archives or used in forensic investigations, where accurate decoding preserves original content. However, attempting to view or edit these files in software without proper Mac OS Roman handling risks —garbled text resulting from mismatched encodings, such as interpreting bytes as ISO-8859-1 instead. Apple continues to include Mac OS Roman compatibility in macOS as of to maintain access to historical data, but discourages its use for new content, aligning with best practices that prioritize for universal interoperability and future-proofing.

References

  1. [1]
    Unicode.org: ROMAN.TXT
    ... Mac OS Roman # character set to Unicode 2.1 and later. # # Copyright: (c) 1994-2002, 2005 by Apple ... Encoding Converter 2.0. # b4,c1 2002-Dec-19 Update URLs ...
  2. [2]
    [PDF] Inside Macintosh - Apple Developer
    ... Character Codes, and Bytes. 1-8. Text Storage. 1-9. Keyboards and Input ... This book documents the parts of Macintosh system software that allow you to ...
  3. [3]
    The Standard Roman Character Set(IM: Tx) - Inside Macintosh
    The Standard Roman character set adds more accented forms, symbols, and diacritical marks, assigning them character codes from $D9 through $FF. It thus consists ...
  4. [4]
    CFStringBuiltInEncodings.macRoman - Apple Developer
    An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16Format encoding (alias of kCFStringEncodingUnicode).
  5. [5]
    Macintosh 128K: Technical Specifications - Apple Support
    Macintosh 128K: Technical Specifications ; Introduced: 1/24/1984 ; Discontinued: 10/1/1985 ; Form Factor: 128 ; Gestalt ID: 1 ; Weight (lbs):. 16.5.
  6. [6]
    [PDF] Inside_Macintosh_Vol_1_1984.pdf - Bitsavers.org
    ABSTRACT. One of the major factors in making a system pleasant and easy to use is the system's consistency. This specification's purpose is to set down.
  7. [7]
    1984 Macintosh Manual : Apple Computer, Inc. - Internet Archive
    Sep 14, 2019 · Original owner's manual from a 1984 Macintosh.
  8. [8]
  9. [9]
    Mac System Software 1.x - BetaWiki
    Mac System Software 1.x is the first version of Mac System Software, the original operating system for the Apple Macintosh, released on January 24, 1984.Mac System Software 1.0 1981... · User menu · Finder 0.85Missing: default Roman
  10. [10]
    A brief history of text on the Mac - The Eclectic Light Company
    Apr 19, 2025 · The Mac's initial version of Extended ASCII became its standard Mac OS Roman encoding by System 6.0. 4 in 1989. Since then it has been modified ...Missing: origins 1984
  11. [11]
    Apple's MacRoman character set and equivalent Unicode and ...
    Jun 16, 2000 · The following table lists all of the 223 characters in Apple's proprietary MacRoman character set, and gives the Unicode name and numeric character reference.
  12. [12]
    Character Sets - Internet Assigned Numbers Authority
    Jun 6, 2024 · Note that the ianacharset-mib needs to be kept in sync with this registry. These aliases that start with "cs" contain the standard numbers along ...
  13. [13]
    Encoding Variants for MacRoman | Apple Developer Documentation
    The standard variant of Mac OS Roman for Mac OS 8.5 and later; 0xDB is the Euro sign. ... The standard Mac OS Icelandic encoding supported by the bitmap versions ...
  14. [14]
    The Roman Script System(IM: Tx) - Inside Macintosh
    The Roman script system is available on all localized versions of Macintosh system software throughout the world. It is not entirely uniform; in different ...
  15. [15]
    Components of a Script System(IM: Tx) - Inside Macintosh
    The 1-byte fonts represent character codes that are 1 byte long, and include all fonts of the Roman script system. The 2-byte fonts represent character codes ...
  16. [16]
    [PDF] Imaging With QuickDraw - Apple Developer
    ... display them in black and white or color, and print them using. QuickDraw—the imaging engine available on all Macintosh computers. The chapters in this book ...
  17. [17]
    Diacritical Stripping and Case Conversion(IM: Tx)
    ### Summary of System 7 Enhancements for Diacritic Handling in International Text Using Script Manager
  18. [18]
    [PDF] The MacWrite·Pro - Vintage Apple
    Mac Write Pro lets you use columns of different widths on the same page. ... programs on your Mac as if these applications were resident on their own com-.
  19. [19]
    Text Importing and Formatting: MacOS, PageMaker - SaneDraw
    Aug 21, 1998 · Introductory tutorial on the use of an application (PageMaker on MacOS) to enter and format text.
  20. [20]
    Words on Macs: 1 Code-Breaking with Unicode
    Mar 20, 2015 · In the first of a series, this explains how Macs work with Unicode, how to get the best out of that, and how to fix its problems.<|control11|><|separator|>
  21. [21]
    CGTextEncoding.encodingMacRoman - Apple Developer
    MacRoman is an ASCII variant originally created for use in the Mac OS, in which characters 127 and lower are ASCII, and characters 128 and higher are non- ...Missing: compatibility | Show results with:compatibility
  22. [22]
    Differences between ANSI, ISO-8859-1 and MacRoman character sets
    Jun 18, 2000 · The three sets are identical for the 95 characters from 32 to 126, the ASCII character set.Missing: shared upper
  23. [23]
    ISO-8859-1 and MacRoman Encoding - Stack Overflow
    Apr 26, 2010 · I know this is due to the Mac using MacRoman and Windows using ISO-8859-1. My question is how can I write a text file that will open up on both ...Missing: Roman | Show results with:Roman
  24. [24]
    Text Encoding Conversion Manager | Apple Developer Documentation
    Handle text encoding conversion between apps and transfer text across different platforms.
  25. [25]
    ConvertFromTextToUnicode | Apple Developer Documentation
    In addition to converting a text string in any encoding toUnicode, the ConvertFromTextToUnicode functioncan map offsets for style or font information from ...
  26. [26]
     Apple Logo Emoji | Meaning, Copy And Paste - Emojipedia
    The logo for Apple Inc is a Private Use Area (PUA) character that is supported on iOS and macOS. This character is not recommended for interchange.Red Apple · Green Apple · Twitter Logo · Beats 1 LogoMissing: history | Show results with:history
  27. [27]
    Unicode and multilingual support in HTML, fonts, Web ... - Alan Wood's
    Some Unicode support has been included in Mac OS since Mac OS 8.5, but prior to Mac OS X 10 only limited use was made of it by applications. Unicode is ...
  28. [28]
    None
    Nothing is retrieved...<|control11|><|separator|>
  29. [29]
    Page Not Found - Apple Developer
    No readable text found in the HTML.<|control11|><|separator|>
  30. [30]
    Convert Character Vector between Encodings - R
    Encoding names "utf8" , "mac" and "macroman" are not portable. "utf8" is converted to "UTF-8" for from and to by iconv , but not for e.g. fileEncoding ...
  31. [31]
    If characters aren't displayed correctly in TextEdit on Mac
    If characters aren't displayed correctly when you open a TextEdit file, you may need to change the text encoding.
  32. [32]
    Mac OS. How can I find out the encoding o… - Apple Community
    Aug 11, 2023 · How can I find out the encoding of a text file through the user interface? Or is this feature not provided on Mac OS?
  33. [33]
    codecs — Codec registry and base classes — Python 3.14.0 ...
    This module defines base classes for standard Python codecs (encoders and decoders) and provides access to the internal Python codec registry.Codecs -- Codec Registry And... · Codec Base Classes · Standard Encodings
  34. [34]
    Re: Save a file with Mac os Roman encoding?
    May 2, 2017 · Hello. This seems to do the trick: file.encoding = "X-MAC-ICELANDIC". Now I just need to find a windows encoding that works.Missing: legacy | Show results with:legacy
  35. [35]
    How to decode mojibake in old Macintosh text files?
    Dec 5, 2023 · There are two steps to decoding a file: (1) extracting it from HFS, (2) converting the Shift-JIS encoding to readable form. (And possibly (3) translating it to ...
  36. [36]
    Greek and special characters show as mojibake - how to decode?
    Nov 10, 2022 · It's a character encoding issue. The string appears to be in encoding Mac OS Roman (figured it out by educated guesses on this site).
  37. [37]
    TextEncoding | Apple Developer Documentation
    Two TextEncoding values are needed—for source and destination encoding—when calling the Text Encoding Converter or the Unicode Converter to convert text.