When I replace an HTML emoji with its code and try to save the page:
$text = preg_replace("/ View attachment 243226 /", "😃", $text);
I get a message saying something like "Some elements may not be saved properly since you have encoding windows-1251 elements, etc.".
If I go on and save the page, the code after the preg_replace gets cut off and the emoji View attachment 243226 looks like some crazy code.
Is there a way to save a php page with HTML emojis in it?
from PHP http://bit.ly/2Rtu07W
via IFTTT

0 Comments