Skip to content

Commit

Permalink
remove UTF-8 to ISO-8859-1, fixes #13, #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Petar Koretic committed Sep 11, 2021
1 parent bf1894d commit f107972
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/pdf417.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ var PDF417 = {
* @param devicePixelRatio (int) determine how much extra pixel density should be added to allow for a sharper image; default window.devicePixelRatio if available
*/
draw: function(code, canvas, aspectratio, ecl, devicePixelRatio) {
code = unescape(encodeURIComponent(code)); // covert UTF-8 to ISO-8859-1
ecl = ecl || -1;
aspectratio = aspectratio || 2;
this.barcode_array = {};
Expand Down

0 comments on commit f107972

Please sign in to comment.