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

Strange characters in tweets #7

Open
mschilder opened this issue Mar 25, 2014 · 2 comments
Open

Strange characters in tweets #7

mschilder opened this issue Mar 25, 2014 · 2 comments

Comments

@mschilder
Copy link
Contributor

Great piece of code. One thing however: sometimes strange characters appear in tweets. How can I prevent this from happening?
screen shot 2014-03-25 at 10 06 29

@lgladdy
Copy link
Contributor

lgladdy commented Mar 25, 2014

This will be twitter returning unicode. You can try and strip them out or convert them with PHP's unicode translation support (google php unicode to ascii) but in my experience that never works very well.

Your best bet is probably to set the page text type to unicode in a meta tag, that way the browser will render the unicode characters correctly.

@mschilder
Copy link
Contributor Author

Thanks, Liam for your swift response. Thing is, the meta-tag is already set to the default for HTML5:

Op dinsdag 25 maart 2014, om 10:15 heeft Liam Gladdy het volgende geschreven:

This will be twitter returning unicode. You can try and strip them out or convert them with PHP's unicode translation support (google php unicode to ascii) but in my experience that never works very well.
Your best bet is probably to set the page text type to unicode in a meta tag, that way the browser will render the unicode characters correctly.


Reply to this email directly or view it on GitHub (#7 (comment)).

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