Ticket #1526 (closed defect: fixed)
Problem with widecharacter ISO8211 parsing
| Reported by: | warmerdam | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.4 |
| Component: | OGR_SF | Version: | 1.5.0 |
| Severity: | normal | Keywords: | s57 iso8211 unicode |
| Cc: | rouault |
Description (last modified by warmerdam) (diff)
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

