Page 1 of 1

Barcode

Posted: Mon Sep 15, 2025 5:18 pm
by Maballa
Script URL:
Version of script: Hesk 3.6.4
Hosting company: local

Congratulations on the excellent project.

I encountered this problem: with the Italian keyboard layout, when scanning the barcode, the "-" characters are detected as "'". For example, ABC-123-ASD with the Italian keyboard layout reads ABC'123'ASD. If I set the English layout, ABC-123-ASD is read correctly.
How can I fix this?

Thanks

Re: Barcode

Posted: Mon Sep 15, 2025 5:53 pm
by Klemen
Hmm, never heard of this before. It might be an issue with the third-party barcode library or an issue with the Italian keyboard encoding.

Exactly what kind of device and software are you using for scanning?

Re: Barcode

Posted: Mon Sep 15, 2025 6:34 pm
by Maballa
The device is this one: https://amzn.eu/d/0mYy97i. I've also tried other devices, but the same thing happens. Even scanning with the results in Notepad results gives two different results for ITA and ENG layouts.
No third-party software the bar code give the same results.
Whit other barcode and library gives two different results.

Thanks

Re: Barcode

Posted: Mon Sep 15, 2025 6:43 pm
by Klemen
Which barcode type do you use in Hesk settings?

Do all users have Italian keyboard or do some have English and some Italian?

Re: Barcode

Posted: Mon Sep 15, 2025 7:14 pm
by Maballa
Tutti hanno la tastiera italiana. Hesk è impostato con Code39.
Abbiamo provato anche altre tipologie di codice a barre in Hesk ma sempre con le differenze citate. Facendo delle prove anche da pc diversi abbiamo visto che il risultato corretto della scansione si ha con Eng layout.

Thank you

Re: Barcode

Posted: Mon Sep 15, 2025 7:36 pm
by Klemen
I did some reading. Some options:

Option #1

See if you can set your barcode scanner to ASCII / character output mode, so that it outputs characters instead of keyboard strokes

Option #2

Some barcode scanners have an option to set the country in their settings. How to change the keyboard / country setting.

Here is what ChatGPT shows for Yanzeo scanners:

How to change the keyboard / country setting

1. Find the setup “barcodes” in the Yanzeo manual corresponding to “Language settings” or “Keyboard country”.
The manual includes a list of countries (United States, Italy, France, German etc.).
2. Scan the barcode for “Italy” (or whatever country corresponds to your keyboard layout) to configure it.
That tells the scanner to remap its internal keycodes to match the Italian keyboard layout.
3. Make sure the scanner is in the correct keyboard mode (“standard” vs “virtual”) if there’s more than one.
If “virtual keyboard” is being used, switch to the normal keyboard mode if possible.
4. Test again: switch your computer keyboard layout to Italian, then scan the barcode again.
It should now output `-` rather than `'`.

Option #3

If nothing works, try scanning this code with your barcode scanner with Italian keyborad. What does it say?

Image

Re: Barcode

Posted: Tue Sep 16, 2025 8:05 pm
by Maballa
Correctly setting the barcode reader solved the problem. Thanks, we learned something new.
Sorry

Re: Barcode

Posted: Tue Sep 16, 2025 8:15 pm
by Klemen
I did as well, glad to hear you got it working :D