id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1526	Problem with widecharacter ISO8211 parsing	warmerdam	warmerdam	"{{{
Dear Warmerdam,

I am a programmer in China, and are using your ISO8211 lib to develop
a S57 parser program for a customer. I found a Unicode string decoding problem
as following:

 In your program you are using ""chFormatDelimeter"" as the splitting character to let user call ""ExtractStringData(pszData, iBytesLeft, &iBytesConsumed)"", I also found ""chFormatDelimeter = DDF_UNIT_TERMINATOR"", you have defined DDF_UNIT_TERMINATOR
as 31, normally there is no problem, but if there is a Unicode character (2 bytes)
which contains 31, then these string will be truncated.
I met this problem with the attached S57 000 file!! In this file, the ""RCID = 1394,
OBJL = 109"" feature contains a  ""NOBJNM"" string attribute, this string contains a chinese
unicode character, one byte is equal to '31'.

Because I don't have ISO8211 detailed document, I don't know how to change your codes.
Hope you can help me!

Hope to received your response!

Best regards,
Yanli
}}}"	defect	closed	normal	1.5.4	OGR_SF	1.5.0	normal	fixed	s57 iso8211 unicode	rouault
