I'm using custom labels to display messages in a Visualforce page. The label contains an apostrophe that isn't displaying on the page. Can I get the apostrophe to display, or do I need to reword the label to take it out?
The label value is: "{0}" can't be interpreted as a true/false value. Please check the box if this field is true.
The relevant vf snippet is:
<apex:outputText value="{!$Label.Error_Invalid_Boolean}">
<apex:param value="{!wrapper.affordableUnitInput}" />
</apex:outputText>
I've tried setting escape to false on the outputText and adding \ before the ' in the custom label. Neither of those worked.
Best Answer
Looks like you may just need to double up the quote in the label text.
"{0}" can''t be interpreted as a true/false value. Please check the box if this field is true.
Based on this half-related question: How to Escape Single Quotation Mark in String.format