Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

How do I force dreamweaver to encode PHP files properly?

Community Beginner ,
Jun 08, 2021 Jun 08, 2021

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?

 

Screen Shot 2021-06-08 at 8.54.08 PM.pngScreen Shot 2021-06-08 at 8.54.54 PM.png

TOPICS
How to , Product issue
612
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 09, 2021 Jun 09, 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!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 09, 2021 Jun 09, 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}

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 09, 2021 Jun 09, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 09, 2021 Jun 09, 2021

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 11, 2021 Jun 11, 2021

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 09, 2025 Sep 09, 2025

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2025 Sep 11, 2025
LATEST

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

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines