prismicio-community / php-kit

Community maintained development kit for Prismic and the PHP language
https://prismic.io
Other
108 stars 82 forks source link

 #58

Closed bondarewicz closed 10 years ago

bondarewicz commented 10 years ago

Hi There, I wonder if someone faced the same issue or could point us in the right direction here...

Imagine situation where content writer enters following on the page content in prismic:

£34.01

once the content is fetched via php-sdk it comes as:

£34.01

after using html_entity_decode() we still get

£34.01

we could use

str_replace("Â", "", $content)

but it seems to be happening for other special chars as well like ™ ® ©

bondarewicz commented 10 years ago

ok, nothing to do with sdk at all :) content="text/html; charset=utf-8" fixes it.