Skip to content

Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT #11

@an-nasir

Description

@an-nasir

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions