Can the byte-representation of Shift-JIS encoded data contain 0xFE in the first or second byte

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
I am fighting some problems around Shift-JIS. We have variable length Shift-JIS encoded records that are terminated by 0xFE.
If 0xFE cannot appear on the low level respresentation of the data, we are clean and have a solution to detect the end of the record.
However, if 0xFE might appear on the low-level representation of the data as well, we might stop reading prematurely and would need to figure out other means to detect the end of the record.
Please note that this problem is not to be solved in .NET, but as Shift-JIS is a Microsoft engineered standard I am posting to this forum.
Thanks, Hanno

View the full article
 
Back
Top