test encodage
reference to barcode scanner.js