Skip to content

qr.exe --ascii produces PNG when redirected to a file #428

Description

@Luddite-Geekazoid

This produces a PNG file: qr.exe content --ascii --output=qrcode.txt
This produces an error: qr.exe content --ascii>qrcode.txt
(The error is: UnicodeEncodeError: 'charmap' codec can't encode character '\u2588' in position 0: character maps to ). It happens regardless of whether I force ANSI (with /A) or Unicode (with /U).

Workaround: To create a QRCode file with (extended) ascii characters, invoke:
qr.exe content --ascii and then copy the characters from the console and paste into the file.

Perhaps this is a bug in just the documentation; qr -h says "--ascii Print as ascii even if stdout is piped."

version is 8.2
OS is Windows 10

Please let me know if you need any more info or testing.

  • LG

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions