Legacy Knowledge Base
Published Jul. 2, 2025

Exported Data to .CSV files with accented characters does not import correctly into MS Excel

Written By

Justin Mann

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • After exporting data from contacts stored in Liferay to a .CSV file, it was found that when trying to import that .CSV file to Microsoft Excel, if there were letters and words that contained accents (i.e. á, é, í, ó, ú), these letters were replaced with other symbols and letters.

Environment

  • This issue is only reproducible with Microsoft Excel, and was not reproducible in LibreOffice Calc

Resolution

  • This occurs because Liferay exports the entries into a .CSV file using UTF-8 encoding. However, by default, Microsoft Excel does not import .CSV files using UTF-8 encoding, causing the accented characters to display improperly.
  • The steps below provide a way to import data so that the accented letters display properly.
    1. Open Microsoft Excel
    2. Select File -> New
    3. Select the Data tab
    4. Select "From Text" and select the .CSV file
    5. Select "Delimited"
    6. For "File origin", select "65001: Unicode (UTF-8)"
    7. Select "Next"
    8. Select "Comma"
    9. Select "Finish"

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base