Uppercase O with acute accentBox bottom-left corner, double vertical
ASCII 211 is Ó on Windows and ╙ in old DOS.
Ó (Capital O with Acute) is byte 211 in Windows-1252, Unicode U+00D3. Irish surnames start with it: Ó Briain, Ó Súilleabháin, where Ó means descendant of and is followed by a space. English spells the same names O'Brien and O'Sullivan, and forms that reject accents or spaces in a surname break the Irish versions. Store the surname exactly as typed, and sort Ó names with O. UTF-8 stores Ó as C3 93, and 93 is the opening curly quote “ in Windows-1252, so mangled text reads Ó Briain. The HTML entity is Ó.
╙ (Double Up, Single Right) is byte 211 in code page 437, the original IBM PC character set, and maps to Unicode U+2559. It's the bottom-left corner of a box with double sides and a single bottom edge: ║ (186) comes down and ─ (196) heads right toward ╜ at 189. Its top-left counterpart is ╓ at 214. Code page 850 put Ë on this byte, so the corner turns into a capital letter when the file is read with 850. In UTF-8 it's E2 95 99, and the HTML entity is ╙.
#include <stdio.h>int main(void) {/* On Windows (code page 1252) byte 211 is Ó.Modern terminals expect UTF-8, so print the code point, not the byte. */printf("\u00D3\n"); /* UTF-8: C3 93 */unsigned char b = 211; /* the raw Windows-1252 byte */printf("%d 0x%02X\n", b, b); /* 211 0xD3 */return 0;}
#include <stdio.h>int main(void) {/* Byte 211 is ╙ only on a console using code page 437(chcp 437 on Windows, or DOSBox). On a UTF-8 terminal thelone byte 0xD3 is invalid and prints as garbage, often �. */putchar(211);/* char is signed on x86, so a plain char holding 0xD3 is -45.Use unsigned char when you compare or index by byte value. */char c = (char)211;unsigned char u = 211;printf("\n%d %d\n", c, u); /* -45 211 *//* Portable: print the Unicode character as UTF-8 instead. */printf("\u2559\n"); /* E2 95 99 */return 0;}
The zero-less code reads the DOS table, where 211 is ╙ on US machines and Ë under code page 850. Alt+0211 gives Ó on any Windows PC. Under code page 850 the DOS code for Ó is Alt+224, which is also why that code types α on a US machine.
The zero-less code reads the DOS table, where 211 is ╙ on US machines and Ë under code page 850. Alt+0211 gives Ó on any Windows PC. Under code page 850 the DOS code for Ó is Alt+224, which is also why that code types α on a US machine.