Opened 13 years ago

Closed 10 years ago

#3421 closed defect (duplicate)

can not access UCS-2 encoded S-57 strings

Reported by: zuencap Owned by: warmerdam
Priority: normal Milestone: 1.10.0
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: S57
Cc:

Description

DDFSubfieldDefn::ExtractStringData function returns zero terminated strings. In the case of S57, the subfield ATVL of the NATF field can be encoded in lexical level 2 which is UCS-2 encoding. Attached patch encodes these strings in utf8.

Attachments (1)

iso8211utf8.patch (1.4 KB ) - added by zuencap 13 years ago.

Download all attachments as: .zip

Change History (6)

by zuencap, 13 years ago

Attachment: iso8211utf8.patch added

comment:1 by warmerdam, 13 years ago

Keywords: S57 added
Status: newassigned

I will need a file demonstrating this issue. I would prefer one that can be part of our public test suite, but if necessary it can be treated as confidential data instead.

comment:2 by warmerdam, 13 years ago

See also #2773

in reply to:  1 comment:3 by zuencap, 13 years ago

Replying to warmerdam:

I will need a file demonstrating this issue. I would prefer one that can be part of our public test suite, but if necessary it can be treated as confidential data instead.

I'm trying to find an apropriate file.

comment:4 by zuencap, 13 years ago

Sorry, I'm not allowed to provide any file. Is there a way to extract a single layer from S57 file? Does that work for you?

comment:5 by Even Rouault, 10 years ago

Milestone: 1.10.0
Resolution: duplicate
Status: assignedclosed

Fixed by #5048

Note: See TracTickets for help on using tickets.