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)
Note:
See TracTickets
for help on using tickets.
example