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 encode body content. #39

Merged
merged 1 commit into from
Aug 10, 2014
Merged

Conversation

cmoralesweb
Copy link
Contributor

When trying to $message->getBodyHtml() on non-UTF-8 messages, I lost some characters:

ESPAÑA
became
ESPAA

Adding '\utf8_encode( \quoted_printable_decode($this->getContent()));' fixed it.

@cmoralesweb cmoralesweb changed the title Encode body content. Utf-8 encode body content. Jul 11, 2014
@ddeboer ddeboer merged commit 4a8ccdd into ddeboer:master Aug 10, 2014
ddeboer added a commit that referenced this pull request Aug 10, 2014
@ddeboer
Copy link
Owner

ddeboer commented Aug 10, 2014

Thanks!

@cmoralesweb
Copy link
Contributor Author

You are welcome, glad to help! :)

@pbrzoski
Copy link

pbrzoski commented Jan 3, 2015

I think this is not good solutions. utf8_encode() only encode from ISO-8859-1. We should use iconv() instead utf8_encode()

See first comment under
http://php.net/manual/en/function.utf8-encode.php

@cmoralesweb
Copy link
Contributor Author

Nice catch, @pbrzoski 👍

@Slamdunk Slamdunk mentioned this pull request Sep 22, 2017
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

Successfully merging this pull request may close these issues.

3 participants