You need to sign in to do that
Don't have an account?
GoForceGo
Showing special/check mark characters in Internet Explorer
The following VF page does NOT display the square root sign in Internet Explorer. It works in Firefox.
It used to work before, now it doesn't!!
<apex:page > <apex:outputText value="√" escape="false" /> </apex:page>
I have verified that IE is capable of displaying this (I wrote a small HTM), but VF generated HTML does not display this. The escape is supposed to escape the characters...
Steve,
Thanks! Semicolon works.Funny thing is that this used to work in VF before!
Ron, it is same as &radic on your chart - &radic doesn't work either unless you put ;
Now Ideally I want a check mark (✓), but IE doesn't work with that and not all fonts have the check mark!
All Answers
which version of IE ?
what does display when the page is complete?
<apex:outputText value="√" escape="false" />
this is what i tried for square root
the char you used, x221a does not appear on my chart, i use visibone
IE 7. It just displays √.
Typo - you need a semi-colon for the entity to be valid. Change your page to
<apex:page ><apex:outputText value="√" escape="false" />
</apex:page>
Firefox makes a guess that you meant to include a semi-colon there. IE does not.
Steve,
Thanks! Semicolon works.Funny thing is that this used to work in VF before!
Ron, it is same as &radic on your chart - &radic doesn't work either unless you put ;
Now Ideally I want a check mark (✓), but IE doesn't work with that and not all fonts have the check mark!
Interestingly, I am able to get a checkmark (ઙ) if I don't set the font weight as bold. Firefox works either way. Of course, the catch is Lucida Sans Regular font has to be installed...
This works in IE
<apex:page >
<apex:outputText value="✓" style="color:red;font-family:Lucida Sans Regular;font-size: 12pt" escape="false"/>
</apex:page>
This just shows a rectangle in IE instead of check mark since font weight is bold.
<apex:page >
<apex:outputText value="✓" style="color:red;font-family:Lucida Sans Regular;font-weight:bold;font-size: 12pt" escape="false"/>
</apex:page>
I suggest using a small image of a checkbox in your VF page. This way you don't have to worry if it works in a browser or if the client has a font installed.
To do this, you could upload the image as a static resource and then link to the resource in your page.
Ryan,
That does sound like a good idea. However, I do have some minor complexities. I have a check mark that I want to show in green...Then I want to show another check mark in yellow...with the character "e" next to it. I could still upload an image of yellow check mark with an e next to it...