I've had some problems decoding files encoded with Windows-1250 (CP1250), which are probably created by some old word versions or something like that. So I've added support for such files. See diffs. You can see that I've added new test for Polish language, encoded in Windows-1250. All tests pass on my computer.
\ansicpgN | This keyword represents the ANSI code page which is used to perform the Unicode to ANSI conversion when writing RTF text. N represents the code page in decimal. This is typically set to the default ANSI code page of the run-time environment (for example \ansicpg1252 for U.S. Windows). The reader can use the same ANSI code page to convert ANSI text back to Unicode.This keyword should be emitted in the RTF header section right after the \ansi, \mac, \pc or \pca keyword.
Hi!
Great work on this library @joshy!
I've had some problems decoding files encoded with Windows-1250 (CP1250), which are probably created by some old word versions or something like that. So I've added support for such files. See diffs. You can see that I've added new test for Polish language, encoded in Windows-1250. All tests pass on my computer.
From http://www.biblioscape.com/rtf15_spec.htm#Heading8:
Tests: