{"id":1986,"date":"2015-04-29T11:41:24","date_gmt":"2015-04-29T11:41:24","guid":{"rendered":"http:\/\/www.bardecode.com\/newsite\/?p=1986"},"modified":"2015-04-29T11:41:24","modified_gmt":"2015-04-29T11:41:24","slug":"auto-detection-of-utf8-data-now-available-for-pdf-417-and-datamatrix","status":"publish","type":"post","link":"https:\/\/www.bardecode.com\/newsite\/auto-detection-of-utf8-data-now-available-for-pdf-417-and-datamatrix\/","title":{"rendered":"Auto-detection of UTF8 data now available for PDF-417 and DataMatrix"},"content":{"rendered":"<p>Version 8.1.1.7 of the Softek Barcode Reader Toolkit for Windows has been released. This version addresses an issue with handling UTF-8 encoded data in a PDF-417 or DataMatrix bar code.<\/p>\n<p>The problem&#8230;<\/p>\n<p>Say you have a PDF417 bar code that encodes the characters:<\/p>\n<p>\u30ad\u30e4\u30ce\u30f3\u96fb\u5b50<\/p>\n<p>&#8230;.in UTF-8 format with the following bytes of hex data:<\/p>\n<p>E3 82 AD E3 83 A4 E3 83 8E E3 83 B3 E9 9B BB E5 AD 90<\/p>\n<p>In previous versions of the SDK this would display as:<\/p>\n<p>=E3=82=AD=E3=83=A4=E3=83=8E=E3=83=B3=E9=9B=BB=E5=AD=90<\/p>\n<p>&#8230;with Encoding set to 1 (quoted printable), which is correct.<\/p>\n<p>But with Encoding set to 3 (UTF-8) the data is double encoded and displays as:<\/p>\n<p>\u00e3\u0082\u00ad\u00e3\u0083\u00a4\u00e3\u0083\u008e\u00e3\u0083<\/p>\n<p>&#8230;and contains the following bytes of hex data:<\/p>\n<p>C3 A3 C2 82 C2 AD C3 A3 C2 83 C2 A4 C3 A3 C2 83 C2 8E C3 A3 C2 83 C2 B3 C3 A9 C2 9B C2 BB C3 A5 C2 AD C2 90<\/p>\n<p>Version 8.1.1.7 checks the binary data (with reference to the property Pdf417AutoUTF8) to see if it is already encoded as UTF8 and if so does not encode it again.<\/p>\n<p>Note that it is quite possible that binary data in a PDF417 bar code could look like UTF-8 encoded data but the requirement is to allow it to pass through. In this case the Pdf417AutoUTF8 setting should be disabled.<\/p>\n<p>The same applies to DataMatrix bar codes and the property called DataMatrixAutoUTF8<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Version 8.1.1.7 of the Softek Barcode Reader Toolkit for Windows has been released. This version addresses an issue with handling UTF-8 encoded data in a PDF-417 or DataMatrix bar code. The problem&#8230; Say you have a PDF417 bar code that encodes the characters: \u30ad\u30e4\u30ce\u30f3\u96fb\u5b50 &#8230;.in UTF-8 format with the following bytes of hex data: E3 &hellip; <\/p>\n","protected":false},"author":1,"featured_media":316,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[217,236,18,203,76,31],"tags":[],"class_list":["post-1986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-documentation-for-our-toolkits-and-applications","category-knowledge-base","category-news","category-settings","category-software-development-kits"],"_links":{"self":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/1986"}],"collection":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/comments?post=1986"}],"version-history":[{"count":1,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/1986\/revisions"}],"predecessor-version":[{"id":1987,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/1986\/revisions\/1987"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/media\/316"}],"wp:attachment":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/media?parent=1986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/categories?post=1986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/tags?post=1986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}