We have a custom object from which we are generating a word document using a visual force page and the corresponding controller. The custom object has several long text area fields and the reps are copying information from word documents and pasting them into Salesforce fields. While doing this copy/paste operations, all characters are showing up visually correctly in Salesforce. However, when we generate the word document report from the custom object, I see that some of the characters are looking weird. I did some research and found that one such character is the long dash character. When we type a - b in word document, word changes the - (short dash) character to (a -- b) long dash and this is messing up the report.
Below is the example of what is showing in Salesforce.
Continue lending growth – expand new markets – AZ is a focus
and, below is what I am seeing in the word document generated by Visual force page and the corresponding controller.
Continue lending growth â€“ expand new markets â€“ AZ is a focus
How do I handle such weird characters while generating the word document using the visual force page and the corresponding controller? Some other characters that seem to be messing up the formatting are single quotes in word, back ticks, some bullet points etc.