Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
<?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}
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
well, for me here, the copy paste works like a charm...copy from https://emojipedia.org and paste in Dreamweaver either, code view or display view, both works.
if you need I can send you a screen capture of the demo.
then it's up to you to work using, copy paste with the emoticon, or use the utf encoding.
personnaly, I prefer the encoding string... but it's a matter of choice
Copy link to clipboard
Copied
So is it a bug in my copy of dreamweaver that it only lets me save/upload files with pasted emoji if the document is new? If I open a document with emoji then it makes them the code in my echo screenshot - which is fine because they render fine in browser - but I cannot save/put a re-opened document if I paste an actual emoji any longer which is frustrating and not how it should work. There should be zero difference in my ability to past the emoji in a new document and a re-opened document ; if my point wasn't clear. Hence why I think there's a setting I should be able to set to tell dreamweaver to apply UTF-8 when re-opening documents, which it is SUPPOSED to according to the first screenshot - but fails.
Copy link to clipboard
Copied
How can it be in this day and age when it comes to UTF-8 Dreamweaver is so stupid?
Copy link to clipboard
Copied
[4-year-old topic locked by moderator.]
Find more inspiration, events, and resources on the new Adobe Community
Explore Now