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

UTF-8, invalid characters as a result of AlternativeText #59

Closed
joca2 opened this issue Oct 24, 2019 · 1 comment
Closed

UTF-8, invalid characters as a result of AlternativeText #59

joca2 opened this issue Oct 24, 2019 · 1 comment

Comments

@joca2
Copy link

joca2 commented Oct 24, 2019

Hello
when I use UTF-8 and

$ message = (new FormattedMessageFactory())
                 ->withHtml(<p>zażółć gęślą jaźń</p>) ...

I have invalid characters in alternative text.
The problem is probably in AlternativeText::fromHtml($html) which uses: DOMDocument->loadHTML() which recodes characters.
regards

frederikbosch added a commit that referenced this issue Oct 28, 2019
@frederikbosch
Copy link
Contributor

I added a test for it, but it does not lead to any bugs, see the test where this HTML is correctly transformed into this alternative text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants