Search code examples
javascriptbarcode-scannerazerty-keyboard

Convert QWERTY barcode scanner input to AZERTY


I'm trying to scan barcodes and send them to an input field.

I have a Barcode scanner (Symbol LS2208) but when I scan a barcode I get the code as if it was written using a QWERTY keyboard (instead of the AZERTY keyboard my users have), for example, instead of getting 2 I get é, ? instead of M, etc.

I read its manual but didn't find how to change the language, so I would like to convert the text using javascript in the input onkey event.

I wonder if there is an existing script that would convert QWERTY keys to AZERTY.


Solution

  • Open the LS2208 manual, go to page B-10. Scan the "French (France)" barcode (or other appropriate barcode if you use a different type of keyboard).

    You can find the manual here: https://portal.motorolasolutions.com/Support/US-EN/Mobile+Networks+RFID+and+BarCode+Scanners/Bar+Code+Scanning/General+Purpose+Scanners/LS2208_US-EN