Opened 13 years ago

Last modified 13 years ago

#3898 new defect

Problems setting class TEXT with mapscript when string contains an ampersand

Reported by: cnieman Owned by: assefa
Priority: normal Milestone:
Component: MapScript-PHP Version: 6.0
Severity: normal Keywords:
Cc: aboudreault

Description

I was working on a php script to automatically replace the TEXT string in a class to pre-generate a bunch of images. I encountered a problem with the string "D&F". Only the part before the ampersand (i.e. the D) was displayed. I was particularly confused as the string "16&19" worked as expected.

With a little experimentation, I found that it seems to depend on the number of characters after the ampersand. While "D&F" only displays the D, "D&FF" displays the whole string properly.

A small sample is attached.

Attachments (1)

ampersand.zip (65.9 KB ) - added by cnieman 13 years ago.
example

Download all attachments as: .zip

Change History (2)

by cnieman, 13 years ago

Attachment: ampersand.zip added

example

comment:1 by assefa, 13 years ago

Cc: aboudreault added
Owner: changed from aboudreault to assefa

I will look into.

Note: See TracTickets for help on using tickets.