Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding of Inaugural texts #237

Open
ssquires82 opened this issue May 9, 2020 · 0 comments
Open

Encoding of Inaugural texts #237

ssquires82 opened this issue May 9, 2020 · 0 comments

Comments

@ssquires82
Copy link

ssquires82 commented May 9, 2020

Three of the inaugural files have unanticipated encodings:

2005-Bush.txt - uses Macintosh Chinese Traditional encoding
2013-Obama.txt - uses UTF-8 encoding.
2017-Trump.txt - uses UTF-8 encoding.
These will produce character and word errors, if read in as ISOLatin1.

In Macintosh Chinese Traditional encoding, a decimal 161 byte is an escape character. The following two-byte translations are needed for the 2005-Bush.txt file:

{161,88} to -
{161,166} to '
{161,75} to ...
{161,167} to "
{161,168} to "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@ssquires82 and others