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

utf-8 code page support #13

Closed
albreax opened this issue Jun 6, 2016 · 2 comments
Closed

utf-8 code page support #13

albreax opened this issue Jun 6, 2016 · 2 comments

Comments

@albreax
Copy link

albreax commented Jun 6, 2016

I get an unsupported encoding command error with an utf-8 (65001) encoded RTF.
{\rtf1\ansi\ansicpg-535\deff0\….
https://en.wikipedia.org/wiki/Windows_code_page
(generated by copy to clipboard in MS Outlook)
The reason for the negativ value -535:
"RTF control words generally accept signed 16-bit numbers as arguments. For this reason, Unicode values greater than 32767 must be expressed as negative numbers."
(source: https://msdn.microsoft.com/de-de/library/aa140277%28office.10%29.aspx)

Can you support this encoding?

@joniles
Copy link
Owner

joniles commented Jun 8, 2016

Hi, thanks for noting this. I have updated the library to support encoding presented in this format and made a new release.

@joniles joniles closed this as completed Jun 8, 2016
@albreax
Copy link
Author

albreax commented Jun 8, 2016

Hi, thanks a lot!

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