BinaryEye icon indicating copy to clipboard operation
BinaryEye copied to clipboard

Remove BOM (byte order mark) before copying to clipboard

Open borg1622 opened this issue 5 years ago • 1 comments

I just experienced an issue with QR codes whose text includes a BOM (byte order mark) at the beginning of the string. e.g. text is hello (hex: 68 65 6c 6c 6f) was (utf8) qr encoded as ef bb bf 68 65 6c 6c 6f.

In this case I just wanted to copy only printable chars to the clipboard, I expected the BOM to be removed.

As I understand the removal of non printable chars might be unwanted in some cases, I would suggest an optional filter for those BOM values (https://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding).

So could you consider to implement such an optional BOM-filter in Binary Eye, please?

borg1622 avatar Jan 26 '21 20:01 borg1622

Hm, yes, I would like to offer such a filter, but I don't know how exactly yet 🤔

What did Binary Eye show? 68 65 6c 6c 6f or ef bb bf 68 65 6c 6c 6f?

Do you have an example QR Code featuring a BOM?

markusfisch avatar Jan 27 '21 17:01 markusfisch

This issue was solved by an update long time ago, so I think we can close this ticket.

borg1622 avatar Aug 31 '23 11:08 borg1622