I am trying to implement utf-8 for flat files. My inputs can be a combination of text and utf-8 characters. All fields are of fixed length format. The major problem is , if I have a field of length 7 and my input field looks like this,
vikr?m?
This contains 9 bytes. But on output I wud get only this because I have a field length of only 7 even though I am giving an input of only 7 characters.
vikr?m
The ? gets truncated. I need to get my output exactly as the input. But I cannot increase the field length , because it would affect the offset positions of the other fields. Is there a way to get around this.
vikr?m?
This contains 9 bytes. But on output I wud get only this because I have a field length of only 7 even though I am giving an input of only 7 characters.
vikr?m
The ? gets truncated. I need to get my output exactly as the input. But I cannot increase the field length , because it would affect the offset positions of the other fields. Is there a way to get around this.