Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component: Table. Export CSV with cyrillic or chinese characters has broken encoding in Microsoft Excel #14562

Closed
AndrewAKovalenko opened this issue Jan 16, 2024 · 0 comments · Fixed by #14563
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@AndrewAKovalenko
Copy link
Contributor

Describe the bug

If you have table that consists of cyrillic or chinese symbols, after export CSV you'll have file with broken encoding in Microsoft Excel.

Opening file with Notepad works fine

Input data:
image

Notepad:
image

Microsoft Excel:
image

Environment

Windows

Reproducer

No response

Angular version

17.0.2

PrimeNG version

17.13.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.10.0

Browser(s)

Chrome 120

Steps to reproduce the behavior

  1. Go to Table
  2. Add cyrillic word to table row (i.e. Тарас Шевченко)
  3. Add chinese word (i.e. 成龍)
  4. Export CSV from table
  5. Open CSV file in Microsoft Excel
  6. Open CSV in Notepad
  7. Observe result

Expected behavior

Both Notepad and Microsoft Excel shouldn't have problems with encoding symbols

@AndrewAKovalenko AndrewAKovalenko added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 16, 2024
@mertsincan mertsincan added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 17, 2024
@mertsincan mertsincan added this to the 17.3.3 milestone Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
2 participants