Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

Saving a php file with emojis

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

Post a Comment

0 Comments