I want to display some spanish accent markers in visualforce page. I used this simple line:

<apex:outputText  value="Test Spanish Accent Markers : límite"/>

but it is rendering as

enter image description here

Please advise the correct method. One method i know is using HTML codes as mentioned here But i don't want to use this as i have to use multiple markers.

  • Just tested on my dev org and it works well, without that strange sign. I think you need to check your browser encoding (I have Unicode UTF-8). – Sergej Utko Sep 19 '14 at 6:59
  • @mast0r I checked and Encoding is Unicode UTF-8 in my google chrome. but still having this issue. Chrome version 37.0.2062.120 – Pankaj Sep 19 '14 at 7:03
  • Also tried using <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> in VF page, but still same issue. – Pankaj Sep 19 '14 at 7:11

You need to have <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />, but ALSO you need to actually encode your page as utf-8 when you save it.

Here is how you do it in SublimeText - Select your file and from the File Menu choose "Save with Encoding" Save with Encoding

To do it with Eclipse, Right-click on the file, choose Properties and ensure that UTF-8 is selected. Image showing Encoding is UTF-8

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.