Opened 14 years ago

Closed 14 years ago

#600 closed defect (fixed)

the capability document with ISO-8859-15 can't be parsed by Xerecs library

Reported by: klain Owned by: Klain Qin
Priority: major Milestone: 3.5.0
Component: FDO API Version: 3.4.0
Severity: 3 Keywords:
Cc: klain.qin@… External ID:

Description

When connecting to this WMS site: http://mapserveur.application.equipement.gouv.fr/map/mapserv?map%3D%2Fopt%2Fdata%2Fcarto%2Fcartelie%2Fprod%2FDRE_Aquitaine%2FContournement_Autoroutier_de_Bordeaux_29_08_06.www.map, an exception will be thrown: XML Document parse error at line 1 column 62: An exception occurred! Type:TranscodingException, Message:Could not create a converter for encoding: ISO-8859-15.

ISO-8859-15 is a newer standard which contains the Euro-Currency-Symbol. It's currently not supported by the Xerces library used by FDO. That's why an exception will be thrown from Xerces.

I googled on internet on this encoding and found someone had already reported this issue to Appache Xerces community: http://issues.apache.org/jira/browse/XERCESC-1167. That person also wrote a transcoder for ISO-8859-15. Refer to the same page for the two files: XML885915Transcoder.cpp and XML885915Transcoder.hpp.

I then integrated that transcoder into the Xerces source tree, rebuilt a new version by myself and then tried the temporary build. It works fine. The WMS server can be connected successfully. I also took a look at the latest Appache Xerces Source Tree (3.0.1), it seems that this transcoder hasn't been integrated. Not sure why it hasn't been integrated.

Attachments (1)

tic_600.patch (13.1 KB ) - added by klain 14 years ago.

Download all attachments as: .zip

Change History (4)

by klain, 14 years ago

Attachment: tic_600.patch added

comment:1 by klain, 14 years ago

Resolution: fixed
Status: newclosed

comment:2 by klain, 14 years ago

Component: Thirdparty ComponentsFDO API
Resolution: fixed
Status: closedreopened

comment:3 by gregboone, 14 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.