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::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT #11

Open
an-nasir opened this issue Jan 31, 2018 · 0 comments

Comments

@an-nasir
Copy link

an-nasir commented Jan 31, 2018

Hi,
I was using this gem for parsing rtf file
ruby version is 2.4.0 and rails is 'rails', '~> 5.1.4'when I execute doc = RubyRTF::Parser.new.parse(File.open(path).read)`

where "path" being equal to a rtf file in public folder -- Ruby native File loads file.
CompatibilityError in
ruby-rtf-0.0.3/lib/ruby-rtf/parser.rb:187:in handle_control'`

Any help or reference to any rtf parser without JAVA dependencies I know there are 2 such gems?

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

1 participant