PDA

View Full Version : Problem with character escaping



gl0w_
18 Aug 2009, 8:29 AM
Having a problem with getting a special character to display. When attemping to get a diameter symbol () to display in a text field i instead get a little black diamond with a question mark in the middle (?). I add an escape to this and i instead get the string "ø Was wondering if someone knew a fix to this or could tell me what i'm doing wrong as i'm pretty new to this.

What i believe to be the offending line looks like this.


value: "$tools.escapeJs($helper.getFieldValue($fieldName))"Then after the escape is added


value: "$tools.escapeJs($tools.escapeHtml($helper.getFieldValue($fieldName)))"