Hi,
Thanks for your quick answering!
Yes, I had already code it in java, but what happens is that some characters are not being well calculated...
This code above should be used to generate a key string form a lock string.
For example I�ve written the following code in java:
For this lock:
passed to the function I receive this key:
, but I should receive this one:
These are the invalid characters:
Position i:19 -> correct='�' (8216) java_code='?' (145)
Position i:24 -> correct='�' (8218) java_code='?' (130)
Position i:41 -> correct='�' (8211) java_code='?' (150)
Position i:45 -> correct='�' (8217) java_code='?' (146)
Position i:48 -> correct='�' (8226) java_code='?' (149)
Position i:58 -> correct='?' (65533) java_code='?' (129)
Position i:64 -> correct='?' (65533) java_code='?' (129)
So I think that this must have something to do with the "char" so I�m trying to use that "u_int8_t" form that c++ code...
Best regards,
Daniel Botelho