Skip to content

Incompatible character encodings: ASCII-8BIT and UTF-8 #6

@bverem

Description

@bverem

When loading a QR-containing PNG with text (which can be read by any webcam QR reader), I get an "incompatible character encodings: ASCII-8BIT and UTF-8" error when trying to get the text through qr = Qrio::Qr.load("something.png").qr.text. I can't quite tell what the issue is. How might I address this issue? Thanks!

Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8
	from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/qrio-0.0.1/lib/qrio/qr_matrix.rb:212:in `join'
	from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/qrio-0.0.1/lib/qrio/qr_matrix.rb:212:in `text'

EDIT: It appears that Qrio has issues decoding strings containing a space near other symbols (such as colons and commas) and a space next to each other. I believe that it's a Qrio issue because other QR readers have no issues with this string. Advice would be sincerely appreciated!

EDIT 2: Also, hyphens (even without spaces).

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