c++macosascii

How to access box drawing characters in ASCII in C++ on Mac


The character I'm first looking for is usually 201 in normal ASCII code, but it’s different for Mac. How do I work around this?


Solution

  • This character in not available in any single byte character set on OS X.

    Unlike the Windows environment (which require special coding to use Unicode), Unicode is readily available in OS X.

    Use Unicode U+2554 or UTF-8 E2 95 94.

    You can just use the following in a character or string: ╔