Opened 16 years ago

Closed 16 years ago

#2842 closed enhancement (invalid)

enhance msEncodeHTMLEntities to encode ISO-Latin-1 Characters

Reported by: russellmcormond Owned by: sdlime
Priority: normal Milestone:
Component: MapServer CGI Version: 5.2
Severity: normal Keywords:
Cc:

Description

I am working in an environment where we have French characters which are coming out of Oracle->ArcSDE->MapServer encoded as ISO-8859-1. For policy reasons we must use UTF-8 everywhere.

As a stopgap until we can find a more correct solution, I made a patch to msEncodeHTMLEntities in mapstring.c to encode those characters as well. This may be useful to other people as well who are in a similar situation, and need something until such time as a proper solution is created.

Attachments (1)

mapstring.patch (2.8 KB ) - added by russellmcormond 16 years ago.
Simple patch to mapstring.c

Download all attachments as: .zip

Change History (2)

by russellmcormond, 16 years ago

Attachment: mapstring.patch added

Simple patch to mapstring.c

comment:1 by russellmcormond, 16 years ago

Resolution: invalid
Status: newclosed

This patch is less useful than initially thought. In our case the problem turns out to be an issue with iconv (library interdependency), which is intended to be used to transcode characters to UTF-8 which is what we were wanting characters encoded in anyway. This HTML entities enhancement would not be useful in most situations.

Note: See TracTickets for help on using tickets.