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

ErrorException : iconv(): Wrong charset, conversion from MACCENTRALEUROPE' to UTF-8//IGNORE//TRANSLIT' is not allowed #839

Closed
huglester opened this issue Jan 4, 2019 · 6 comments

Comments

@huglester
Copy link

This is:

- [x] a bug report

### What is the expected behavior?
Should open the file

### What is the current behavior?
throws exception:
ErrorException  : iconv(): Wrong charset, conversion from `MACCENTRALEUROPE' to `UTF-8//IGNORE//TRANSLIT' is not allowed


### What are the steps to reproduce?
$spreadsheet = IOFactory::load($source);

### Which versions of PhpSpreadsheet and PHP are affected?
1.5.x and 1.6.0


Thanks
@ricardobarantini
Copy link

I'm having the same issue.

@jannovy
Copy link

jannovy commented Feb 18, 2019

Mee too.

iconv(): Wrong charset, conversion from MACCENTRALEUROPE' to UTF-8//IGNORE//TRANSLIT' is not allowed

@ailixter
Copy link

ailixter commented Mar 7, 2019

it seems the problem is in StringHelper, that detects proper iconv using dummy conversion src_encoding->dst_encoding (which works fine in the situation), but makes a real convert as src_encoding->dst_encoding//IGNORE//TRANSLIT

@inl-pd-autotest
Copy link

This is an issue with iconv.
You probably experience it because you use Alpine Linux (which uses musl).
In that case the solution is in last 2 lines of the Dockerfile from this comment.

@stale
Copy link

stale bot commented May 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.

@oleibman
Copy link
Collaborator

Fixed by PR #2213 in July 2021.

@oleibman oleibman removed the stale label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants