FerasAmara / cocoabarcodes

Automatically exported from code.google.com/p/cocoabarcodes
0 stars 0 forks source link

Code128 problem case : checkDigit = 57 #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. generate barcode with code128
2. barcode number : 8231123578244317
3. generated invalid barcode 

What version of the product are you using? On what operating system?
r8

Please provide any additional information below.

solution
NKDCode128Barcode.m
_encodeChar withSet 

        case 'X':
            return @"11100010110";
/*
  cocoabarcodes skip Y : 57 
*/
        case 'Z':
            return @"11101100010";

plz insert
        case 'Y':
            return @"11101101000";

http://en.wikipedia.org/wiki/Code_128

Original issue reported on code.google.com by jaewon.b...@gmail.com on 16 Mar 2011 at 12:38