Jump to content

Mac OS Roman

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Spitzak (talk | contribs) at 18:49, 22 November 2019 (Codepage layout: Put the shift key glyphs in the table). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Mac OS Roman
MIME / IANAmacintosh
Alias(es)mac, MacRoman, x-mac-roman
Language(s)English, various others
ClassificationExtended ASCII, Mac OS script
ExtendsASCII

Mac OS Roman is a character encoding primarily used by the classic Mac OS to represent text. It encodes 256 characters, the first 128 of which are identical to ASCII, with the remaining characters including mathematical symbols, diacritics, and additional punctuation marks. It is suitable for English and several other Western languages. Mac OS Roman is a superset of the original Macintosh character set, used in System 1.

The Internet Assigned Numbers Authority identifies this encoding using the string "macintosh". The MIME Content-Type for this encoding is therefore "text/plain; charset=macintosh". Mac OS Roman is also referred to as MacRoman or the Apple Standard Roman character set. The Microsoft Windows code page number is 10000.

Characters that were in ISO 8859-1 but not in Mac OS Roman were a source of trouble trying to display or edit web pages on Macintosh computers.

Codepage layout

The following table shows how characters are encoded in Macintosh Roman. Each character is shown with its Unicode equivalent right below and its decimal code at the bottom.

Mac OS Roman
_0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A _B _C _D _E _F
0_ Template:Chset-color-ctrl|NUL
0000
Template:Chset-color-ctrl|SOH
0001
Template:Chset-color-ctrl|STX
0002
Template:Chset-color-ctrl|ETX
0003
Template:Chset-color-ctrl|EOT
0004
Template:Chset-color-ctrl|ENQ
0005
Template:Chset-color-ctrl|ACK
0006
Template:Chset-color-ctrl|BEL
0007
Template:Chset-color-ctrl|BS
0008
Template:Chset-color-ctrl|HT
0009
Template:Chset-color-ctrl|LF
000A
Template:Chset-color-ctrl|VT
000B
Template:Chset-color-ctrl|FF
000C
Template:Chset-color-ctrl|CR
000D
Template:Chset-color-ctrl|SO
000E
Template:Chset-color-ctrl|SI
000F
1_ Template:Chset-color-ctrl|DLE
0010
Template:Chset-color-graph|[a]
2318
Template:Chset-color-graph|[a]
21E7
Template:Chset-color-graph|[a]
2325
Template:Chset-color-graph|[a]
2303
Template:Chset-color-ctrl|NAK
0015
Template:Chset-color-ctrl|SYN
0016
Template:Chset-color-ctrl|ETB
0017
Template:Chset-color-ctrl|CAN
0018
Template:Chset-color-ctrl|EM
0019
Template:Chset-color-ctrl|SUB
001A
Template:Chset-color-ctrl|ESC
001B
Template:Chset-color-ctrl|FS
001C
Template:Chset-color-ctrl|GS
001D
Template:Chset-color-ctrl|RS
001E
Template:Chset-color-ctrl|US
001F
2_ Template:Chset-color-misc|SP
0020
Template:Chset-color-punct|!
0021
Template:Chset-color-punct|"
0022
Template:Chset-color-punct|#
0023
Template:Chset-color-graph|$
0024
Template:Chset-color-punct|%
0025
Template:Chset-color-punct|&
0026
Template:Chset-color-punct|'
0027
Template:Chset-color-punct|(
0028
Template:Chset-color-punct|)
0029
Template:Chset-color-punct|*
002A
Template:Chset-color-graph|+
002B
Template:Chset-color-punct|,
002C
Template:Chset-color-punct|-
002D
Template:Chset-color-punct|.
002E
Template:Chset-color-punct|/
002F
3_ Template:Chset-color-digit|0
0030
Template:Chset-color-digit|1
0031
Template:Chset-color-digit|2
0032
Template:Chset-color-digit|3
0033
Template:Chset-color-digit|4
0034
Template:Chset-color-digit|5
0035
Template:Chset-color-digit|6
0036
Template:Chset-color-digit|7
0037
Template:Chset-color-digit|8
0038
Template:Chset-color-digit|9
0039
Template:Chset-color-punct|:
003A
Template:Chset-color-punct|;
003B
Template:Chset-color-graph|<
003C
Template:Chset-color-graph|=
003D
Template:Chset-color-graph|>
003E
Template:Chset-color-punct|?
003F
4_ Template:Chset-color-punct|@
0040
Template:Chset-color-alpha|A
0041
Template:Chset-color-alpha|B
0042
Template:Chset-color-alpha|C
0043
Template:Chset-color-alpha|D
0044
Template:Chset-color-alpha|E
0045
Template:Chset-color-alpha|F
0046
Template:Chset-color-alpha|G
0047
Template:Chset-color-alpha|H
0048
Template:Chset-color-alpha|I
0049
Template:Chset-color-alpha|J
004A
Template:Chset-color-alpha|K
004B
Template:Chset-color-alpha|L
004C
Template:Chset-color-alpha|M
004D
Template:Chset-color-alpha|N
004E
Template:Chset-color-alpha|O
004F
5_ Template:Chset-color-alpha|P
0050
Template:Chset-color-alpha|Q
0051
Template:Chset-color-alpha|R
0052
Template:Chset-color-alpha|S
0053
Template:Chset-color-alpha|T
0054
Template:Chset-color-alpha|U
0055
Template:Chset-color-alpha|V
0056
Template:Chset-color-alpha|W
0057
Template:Chset-color-alpha|X
0058
Template:Chset-color-alpha|Y
0059
Template:Chset-color-alpha|Z
005A
Template:Chset-color-punct|[
005B
Template:Chset-color-punct|\
005C
Template:Chset-color-punct|]
005D
Template:Chset-color-graph|^
005E
Template:Chset-color-punct|_
005F
6_ Template:Chset-color-graph|`
0060
Template:Chset-color-alpha|a
0061
Template:Chset-color-alpha|b
0062
Template:Chset-color-alpha|c
0063
Template:Chset-color-alpha|d
0064
Template:Chset-color-alpha|e
0065
Template:Chset-color-alpha|f
0066
Template:Chset-color-alpha|g
0067
Template:Chset-color-alpha|h
0068
Template:Chset-color-alpha|i
0069
Template:Chset-color-alpha|j
006A
Template:Chset-color-alpha|k
006B
Template:Chset-color-alpha|l
006C
Template:Chset-color-alpha|m
006D
Template:Chset-color-alpha|n
006E
Template:Chset-color-alpha|o
006F
7_ Template:Chset-color-alpha|p
0070
Template:Chset-color-alpha|q
0071
Template:Chset-color-alpha|r
0072
Template:Chset-color-alpha|s
0073
Template:Chset-color-alpha|t
0074
Template:Chset-color-alpha|u
0075
Template:Chset-color-alpha|v
0076
Template:Chset-color-alpha|w
0077
Template:Chset-color-alpha|x
0078
Template:Chset-color-alpha|y
0079
Template:Chset-color-alpha|z
007A
Template:Chset-color-punct|{
007B
Template:Chset-color-graph||
007C
Template:Chset-color-punct|}
007D
Template:Chset-color-graph|~
007E
Template:Chset-color-ctrl|DEL
007F
8_ Template:Chset-color-alpha|Ä
00C4
Template:Chset-color-alpha|Å
00C5
Template:Chset-color-alpha|Ç
00C7
Template:Chset-color-alpha|É
00C9
Template:Chset-color-alpha|Ñ
00D1
Template:Chset-color-alpha|Ö
00D6
Template:Chset-color-alpha|Ü
00DC
Template:Chset-color-alpha|á
00E1
Template:Chset-color-alpha|à
00E0
Template:Chset-color-alpha|â
00E2
Template:Chset-color-alpha|ä
00E4
Template:Chset-color-alpha|ã
00E3
Template:Chset-color-alpha|å
00E5
Template:Chset-color-alpha|ç
00E7
Template:Chset-color-alpha|é
00E9
Template:Chset-color-alpha|è
00E8
9_ Template:Chset-color-alpha|ê
00EA
Template:Chset-color-alpha|ë
00EB
Template:Chset-color-alpha|í
00ED
Template:Chset-color-alpha|ì
00EC
Template:Chset-color-alpha|î
00EE
Template:Chset-color-alpha|ï
00EF
Template:Chset-color-alpha|ñ
00F1
Template:Chset-color-alpha|ó
00F3
Template:Chset-color-alpha|ò
00F2
Template:Chset-color-alpha|ô
00F4
Template:Chset-color-alpha|ö
00F6
Template:Chset-color-alpha|õ
00F5
Template:Chset-color-alpha|ú
00FA
Template:Chset-color-alpha|ù
00F9
Template:Chset-color-alpha|û
00FB
Template:Chset-color-alpha|ü
00FC
A_ Template:Chset-color-punct|
2020
Template:Chset-color-graph|°
00B0
Template:Chset-color-graph|¢
00A2
[b]
Template:Chset-color-graph|£
00A3
[b]
Template:Chset-color-punct|§
00A7
Template:Chset-color-punct|
2022
Template:Chset-color-punct|
00B6
Template:Chset-color-alpha|ß
00DF
Template:Chset-color-graph|®
00AE
Template:Chset-color-graph|©
00A9
[b]
Template:Chset-color-graph|
2122
Template:Chset-color-graph|´
00B4
Template:Chset-color-graph|¨
00A8
Template:Chset-color-graph|
2260
Template:Chset-color-alpha|Æ
00C6
Template:Chset-color-alpha|Ø
00D8
B_ Template:Chset-color-graph|
221E
Template:Chset-color-graph|±
00B1
[b]
Template:Chset-color-graph|
2264
Template:Chset-color-graph|
2265
Template:Chset-color-graph|¥
00A5
Template:Chset-color-letter|µ
00B5
[b]
Template:Chset-color-graph|
2202
Template:Chset-color-graph|
2211
Template:Chset-color-graph|
220F
Template:Chset-color-alpha|π
03C0
Template:Chset-color-graph|
222B
Template:Chset-color-alpha|ª
00AA
Template:Chset-color-alpha|º
00BA
Template:Chset-color-alpha|Ω
03A9
Template:Chset-color-alpha|æ
00E6
Template:Chset-color-alpha|ø
00F8
C_ Template:Chset-color-punct|¿
00BF
Template:Chset-color-punct|¡
00A1
Template:Chset-color-graph|¬
00AC
Template:Chset-color-graph|
221A
Template:Chset-color-alpha|ƒ
0192
Template:Chset-color-graph|
2248
Template:Chset-color-graph|
2206
Template:Chset-color-punct|«
00AB
Template:Chset-color-punct|»
00BB
Template:Chset-color-punct|
2026
Template:Chset-color-misc|NBSP
00A0
Template:Chset-color-alpha|À
00C0
Template:Chset-color-alpha|Ã
00C3
Template:Chset-color-alpha|Õ
00D5
Template:Chset-color-alpha|Œ
0152
Template:Chset-color-alpha|œ
0153
D_ Template:Chset-color-punct|
2013
Template:Chset-color-punct|
2014
Template:Chset-color-punct|
201C
Template:Chset-color-punct|
201D
Template:Chset-color-punct|
2018
Template:Chset-color-punct|
2019
Template:Chset-color-graph|÷
00F7
Template:Chset-color-graph|
25CA
Template:Chset-color-alpha|ÿ
00FF
Template:Chset-color-alpha|Ÿ
0178
Template:Chset-color-graph|
2044
Template:Chset-color-graph|[c]
20AC
Template:Chset-color-punct|
2039
Template:Chset-color-punct|
203A
Template:Chset-color-alpha|
FB01
Template:Chset-color-alpha|
FB02
E_ Template:Chset-color-punct|
2021
Template:Chset-color-punct|·
00B7
Template:Chset-color-punct|
201A
Template:Chset-color-punct|
201E
Template:Chset-color-punct|
2030
Template:Chset-color-alpha|Â
00C2
Template:Chset-color-alpha|Ê
00CA
Template:Chset-color-alpha|Á
00C1
Template:Chset-color-alpha|Ë
00CB
Template:Chset-color-alpha|È
00C8
Template:Chset-color-alpha|Í
00CD
Template:Chset-color-alpha|Î
00CE
Template:Chset-color-alpha|Ï
00CF
Template:Chset-color-alpha|Ì
00CC
Template:Chset-color-alpha|Ó
00D3
Template:Chset-color-alpha|Ô
00D4
F_ Template:Chset-color-graph|[d]
F8FF
Template:Chset-color-alpha|Ò
00D2
Template:Chset-color-alpha|Ú
00DA
Template:Chset-color-alpha|Û
00DB
Template:Chset-color-alpha|Ù
00D9
Template:Chset-color-alpha|ı
0131
Template:Chset-color-alpha|ˆ
02C6
Template:Chset-color-graph|˜
02DC
Template:Chset-color-graph|¯
00AF
Template:Chset-color-graph|˘
02D8
Template:Chset-color-graph|˙
02D9
Template:Chset-color-graph|˚
02DA
Template:Chset-color-graph|¸
00B8
Template:Chset-color-graph|˝
02DD
Template:Chset-color-graph|˛
02DB
Template:Chset-color-alpha|ˇ
02C7

  Letter  Number  Punctuation  Symbol  Other  Undefined

  1. ^ a b c d These (usually nonprintable) characters are Command, Shift, Option, and Control key glyphs in many fonts, particularly those intended for use as system fonts, so that shortcuts in menu items could be drawn. The Command glyph is mappable to U+2318 PLACE OF INTEREST SIGN.
  2. ^ a b c d e The codes 0xA2, 0xA3, 0xA9, 0xB1, and 0xB5 coincidentally have the same character assignment as ISO 8859-1 (and thus Unicode).
  3. ^ Before Mac OS 8.5, the character 0xDB mapped to currency sign (¤), Unicode character U+00A4.
  4. ^ The character 0xF0 is a solid Apple logo. Apple uses U+F8FF in the Corporate Private Use Area for this logo, but it is usually not supported on non-Apple platforms.

Application notes

With the release of Mac OS X, Mac OS Roman and all other "scripts" (as classic Mac OS called them) were replaced by UTF-8 as the standard character encoding for the Macintosh operating system. However, the default character encoding in Java for Mac OS X remained MacRoman,[1] and the keyboard layout with its combination of control, option, and dead keys still map to the original characters in MacRoman. The default character encoding for Java can be changed to UTF-8 by adding the following line to .bashrc:

export set JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8"

See also

References

  1. ^ "Java Development Guide for Mac: User Interface Toolkits for Java". Archived from the original on 2012-11-19.
  • Apple Computer, Inc. (1993). Inside Macintosh: Text. New York: Addison-Wesley. ISBN 0-201-63298-5.
  • Apple Computer, Inc. (1985). Inside Macintosh Volume I. New York: Addison-Wesley. ISBN 0-201-17731-5.