function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
OSJMgrOSJMgr 

Visualforce Word Doc Rich Text Area Field Rendering Issues

I am having rendering issues when I create a word doc from a visualforce page containing a Rich Text Area field.  The spaces after a period render as a  (capital A caret).  It seems this is some type of text encoding translation error.  Any idea how to fix this? 

 

I have tried using put outputField and outputText with escape="false".  It's a real annoyance to my users to have edit these out before they save the word doc.

 

 

Best Answer chosen by Admin (Salesforce Developers) 
OSJMgrOSJMgr

Ha!  I found the answer by accident via Google.  Apparently, you need to set the charset to "Windows-1252" in the contentType portion of the Page tag.  The following worked:

<apex:page contentType="application/ms-word; charset=Windows-1252#