check if encoding has been set before using it
This commit is contained in:
@@ -262,7 +262,7 @@ public class IsoValue<T> implements Cloneable {
|
|||||||
} else if (ldiff == 2) {
|
} else if (ldiff == 2) {
|
||||||
lhead = "00" + lhead;
|
lhead = "00" + lhead;
|
||||||
}
|
}
|
||||||
outs.write(lhead.getBytes(encoding));
|
outs.write(encoding == null ? lhead.getBytes():lhead.getBytes(encoding));
|
||||||
} else {
|
} else {
|
||||||
//write the length in ASCII
|
//write the length in ASCII
|
||||||
if (digits == 3) {
|
if (digits == 3) {
|
||||||
|
|||||||
Reference in New Issue
Block a user