in

Support Portal

Swift decoder '\' character escaping bug

Last post 02-19-2008 8:00 AM by Ben Hejl. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-17-2008 5:31 PM

    Swift decoder '\' character escaping bug

    Hello.

    I've got strange results with SwiftDecoder demo on the attached image: looks like  PDF417 decoder (or demo program) tries to escape '\' character with another '\' (I was decoding compressed binary barcode and counted every character :). Don't know if this is a problem of demo application or of the decoding engine, just thought you would like to know.

    I've attached full-ascii (0..255) barcode image which clearly demonstrates the problem.

    Wbr, Nik.
     

    • Post Points: 4
  • 02-19-2008 8:00 AM In reply to

    • Ben Hejl
    • Top 10 Contributor
    • Joined on 05-11-2007
    • Cherry Hill, New Jersey
    • Interleaved 2 of 5
    • Points 142

    Re: Swift decoder '\' character escaping bug

    The original PDF417 specification left open how GLI codewords, now ECI codewords, should be interpreted. SwiftDecoder implemented the PDF417 decoder according to this specification and GLI support was not included. However, a choice was made to convert all backslash characters to output two backslash characters in case of programs that were expecting GLI or ECI codewords. This is still the default case in SwiftDecoder. You can change this behavior using the SD_PROP_MISC_ECI_HANDLING property. Setting this property to SD_CONST_ECI (1) will allow the encoded ECI information to be returned and backslash characters will continue to be output as two backslash characters. Setting the property to SD_CONST_BCI (2) will cause ECI codewords to be ignored and only return single backslash characters.  This property is not currently accessable in the SwiftDecoder Demonstrator application.

    Filed under: ,
    • Post Points: 1
Page 1 of 1 (2 items)
Copyright Omniplanar, Inc. 2007
Powered by Community Server (Commercial Edition), by Telligent Systems