SAP Knowledge Base Article - Public

2503052 - Document Generation- Language Displayed Incorrectly on MS Word Generation

Symptom

  1. Copy text from  MS Word file into document generation template and export it as a Word file, some Czech language characters display incorrectly but display correctly in PDF

Environment

Employee Central

Reproducing the Issue

Reproducing the issue:

  1. Create the template in MS Word and copy text
  • Go to admin center> Employee files> Choose Document Generation- manage Document Template
  • Create New then choose MDF DocumentGeneration Template
  • Copy From WORD and click save
  • Then export this as a word Doc- the language displays incorrectly

      2. Create a template in Wordpad or Notepad

  • Go to admin center> Employee files> Choose Document Generation- manage Document Template
  • Create New then choose MDF DocumentGeneration Template
  • Copy text from Wordpad or Notepad  and click save
  • Once exported Via word- the language appears correctly

Cause

This is a limitation within MS Word. The text is formatted in a certain way in MS Word and when copied from word into the template and exported via Word, the formatting persists and wil display the text incorrectly. This is due to The rich text editor does not provide html codes for characters stored as Unicode and due to this unavailability of the html codes for few characters stored as unicode, the word generator is not able to display these characters properly in the generated document and is therefore inserting junk data into the document upon its generation.

Resolution

  1. Copy the text from Word to Windows Notepad or Notepad++, and then copy it from there to Document Generation wizard and it will display correctly Via MS Word.
  2. State encoding command at the beginning of the template, which uses the special characters:

<meta charset="UTF-8">

Alternatively,

Exporting the document as a PDF will display the text correctly

See Also

2427663 -Generate Document: Unwanted Character are showing in Word Document but no in PDF Document

Keywords

Document Generation, Word Document, Special Characters, Language, Czech , KBA , LOD-SF-EC-DOC , Document Generation , Problem

Product

SAP SuccessFactors Employee Central 1611 ; SAP SuccessFactors Employee Central 1702 ; SAP SuccessFactors Employee Central 1705 ; SAP SuccessFactors Employee Central 1708