hongquan / CoBang

A QR code scanner desktop app for Linux
GNU General Public License v3.0
243 stars 28 forks source link

Unicode characters not showed #49

Open pherjung opened 2 years ago

pherjung commented 2 years ago

If scanned QR code has some specials lowercase characters (like é, à, ä, etc). CoBang doesn't handle it correctly. I'm using CoBang 0.9.6 on Manjaro.

hongquan commented 2 years ago

Thank you. I haven't tested it. Will fix.

hongquan commented 2 years ago

@pherjung Could you give a screenshot? I've just tested and it can handle Unicode:

image

pherjung commented 2 years ago

I have the issue using the webcam and importing the file. It should be : Il était une fois, un noël radieiux et un gros test. Manchmal sind wir über freundlich.

cobang_issue

hongquan commented 2 years ago

@pherjung Could you share me that picture? I guess it is just your system configuration.

pherjung commented 2 years ago

Capture d'écran_20220103_001 Here is the picture. Is this fine for you?

hongquan commented 2 years ago

Hi, I can reproduce the issue. Unfortunately, I cannot fix it right now, because it is a bug of the underlying library, ZBar, which assumes the text-encoding and tries to convert binary string to unicode before returning to the application.

I will try to contact ZBar developers for this issue.

hongquan commented 11 months ago

I've just heard about QR scanner based on WeChat algorithm. Maybe I will port it to Python / Rust and use it behind CoBang.