Skip to main content
Participating Frequently
June 9, 2021
Question

How do I force dreamweaver to encode PHP files properly?

  • June 9, 2021
  • 3 replies
  • 669 views

Often times when I re-open a php document that has emoji characters inside of it, they turn into non-emoji codes. I've set preferences for new document creation to be UTF-8, and for it to apply to opening existing documents - but it hasn't helped. Anyone have a suggestion?

 

3 replies

Participant
September 9, 2025

How can it be in this day and age when it comes to UTF-8 Dreamweaver is so stupid?

Nancy OShea
Community Expert
Community Expert
September 11, 2025

[4-year-old topic locked by moderator.]

 

 

Nancy O'Shea— Product User & Community Expert
B i r n o u
Legend
June 9, 2021
<?php
	echo "\u{1F603}";
?>

you will find the emoticon list here

https://unicode.org/emoji/charts/full-emoji-list.html

and then in exemple

use U+1F606 as \u{1F606}

 

cjt3007Author
Participating Frequently
June 9, 2021

Hmm, why would that be a requirement, though? I can paste the characters directly from emojipedia and they echo fine in-browser when I PUT the file. In TextEditor they show up fine when I open the php file, too. The primary issue is that they do not ALWAYS show up fine in dreamweaver, and when dreamweaver fails to render them I cannot paste the emoji character from emojipedia directly. This is a dreamweaver issue only when re-opening documents, too - not when I put the emoji in a fresh document.

BenPleysier
Community Expert
Community Expert
June 9, 2021

Could you create a new document complete with the echo statement. Then copy the code and place it here so that we can see what is going on under the hood.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!