saintmike has asked for the wisdom of the Perl Monks concerning the following question:
However, when using a "declawed" Cuecat (which works fine on Windows without any decoder), I'm seeing some undecipherable keyboard escape sequences instead of clear text characters.
Here's an example: The scanned barcode is "056 698 580 492" and STDIN shows
Another one: Scanned barcode is "978 076 270 214 551 095", and keyboard input shows0x0000 : 1B 5B 32 7E 1B 5B 44 1B 5B 41 1B 5B 32 7E 1B 5B 0x0010 : 45 1B 5B 36 7E 1B 5B 32 7E 1B 5B 45 1B 5B 44 1B 0x0020 : 5B 32 7E 1B 5B 45 1B 5B 44 1B 5B 32 7E 1B 5B 45 0x0030 : 1B 5B 31 7E 1B 5B 32 7E 1B 5B 45 1B 5B 43 1B 5B 0x0040 : 32 7E 1B 5B 45 1B 5B 36 7E 1B 5B 32 7E 1B 5B 45 0x0050 : 1B 5B 43 1B 5B 32 7E 1B 5B 44 1B 5B 41 1B 5B 32 0x0060 : 7E 1B 5B 45 1B 5B 42 1B 5B 32 7E 1B 5B 45 1B 5B 0x0070 : 31 7E 1B 5B 32 7E 1B 5B 45 1B 5B 32 7E 1B 5B 32 0x0080 : 7E 1B 5B 45 1B 5B 36 7E 1B 5B 32 7E 1B 5B 45 1B 0x0090 : 5B 34 7E 0A
This happens on Linux Fedora (2). As I've mentioned above, any Windows application will just show the scanned barcode. Can any venerable monk explain the difference? I realize this isn't really a Perl question ... but pointers to snippets or modules on CPAN would certainly be appreciated.0x0000 : 1B 5B 32 7E 1B 5B 45 1B 5B 31 7E 1B 5B 32 7E 1B 0x0010 : 5B 45 1B 5B 45 1B 5B 32 7E 1B 5B 45 1B 5B 43 1B 0x0020 : 5B 32 7E 1B 5B 44 1B 5B 41 1B 5B 32 7E 1B 5B 45 0x0030 : 1B 5B 45 1B 5B 32 7E 1B 5B 45 1B 5B 44 1B 5B 32 0x0040 : 7E 1B 5B 45 1B 5B 32 7E 1B 5B 32 7E 1B 5B 45 1B 0x0050 : 5B 45 1B 5B 32 7E 1B 5B 44 1B 5B 41 1B 5B 32 7E 0x0060 : 1B 5B 45 1B 5B 32 7E 1B 5B 32 7E 1B 5B 44 1B 5B 0x0070 : 35 7E 1B 5B 32 7E 1B 5B 45 1B 5B 42 1B 5B 32 7E 0x0080 : 1B 5B 45 1B 5B 36 7E 1B 5B 32 7E 1B 5B 45 1B 5B 0x0090 : 36 7E 1B 5B 32 7E 1B 5B 44 1B 5B 35 7E 1B 5B 32 0x00A0 : 7E 1B 5B 44 1B 5B 41 1B 5B 32 7E 1B 5B 45 1B 5B 0x00B0 : 31 7E 1B 5B 32 7E 1B 5B 45 1B 5B 36 7E 0A
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CueCat decoding with Perl - revisited
by bart (Canon) on Apr 03, 2005 at 20:24 UTC | |
by saintmike (Vicar) on Apr 03, 2005 at 21:26 UTC | |
|
Re: CueCat decoding with Perl - revisited
by theorbtwo (Prior) on Apr 04, 2005 at 05:10 UTC | |
|
Re: CueCat decoding with Perl - revisited
by brian_d_foy (Abbot) on Apr 04, 2005 at 01:32 UTC | |
by saintmike (Vicar) on Apr 04, 2005 at 03:13 UTC | |
by brian_d_foy (Abbot) on Apr 04, 2005 at 21:06 UTC |