1

Can I insert emoji to PHP without lost Unicode format?

I try to add this emoji into PHP file but when I save the file it gives me an alert that "This file contain characters in Unicode format which will be lost if you save this file as an ANSI encode text file"

  • You need to change your file encoding to use UTF-8 (which can encode the emoji). Which editor and platform are you using? – Aurora0001 May 27 '17 at 13:42
  • Notepad++ and yes the PHP file is already with encoding utf-8 but when I add the emoji and saved and reopen the file it's changed to ANSI –  May 27 '17 at 13:44
  • 1
    Possible duplicate of [notepad++ converting ansi encoded file to utf-8](https://stackoverflow.com/questions/7256049/notepad-converting-ansi-encoded-file-to-utf-8) – Aurora0001 May 27 '17 at 13:45
  • I check your link and yes my settings is like that, Also after reopening the file again I found that the emoji changed from to ًںک‚ If you try you will find the issue. –  May 27 '17 at 13:47

0 Answers0