Ticket #3898 (new defect)

Opened 2 years ago

Last modified 2 years ago

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

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

Change History

Changed 2 years ago by cnieman

example

Changed 2 years ago by assefa

  • cc aboudreault added
  • owner changed from aboudreault to assefa

I will look into.

Note: See TracTickets for help on using tickets.