Dreamweaver can't save php file?

Dreamweaver cannot save php file.

The error message says:

The encoding of the current document cannot correctly save all the characters in the document that you might want to change to UTF-8 or the encoding that supports spatial characters in this document.

How to save a file to run?

+4
source share
7 answers

Open the file in Dreamweaver, I have CS5. Edit -> Page Properties -> Header / Encoding, use DD for encoding to change it to UTF-8.

+12
source

You must save your php file in UTF-8 format. You can refer to this link for more information.

+4
source

if you work with windows, just use notepad to open the php file and do “Save As”, change the encoding type to “UTF-8” and this will hopefully fix the problem. I came across this a long time ago.

+2
source

Old post, although it might help someone. I have the same problem and the trick worked for me.

  • Add this meta tag somewhere in the file and save the file. It will be saved correctly.

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  • Delete the above meta tag and save it again. Everything will be fine.

0
source

When trying to use Tamizh fonts for my web page, I used UNICODE to display as well as to store values ​​in a MySQL database. I simply inserted UNICODE strings into the database and selected like regular strings.

UNICODE example:

  &#x0BA4;&#x0BAE;&#x0BBF;&#x0BB4;&#x0BCD; 

=

தமிழ்

0
source

Added this to the top of the page:

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

Worked!

0
source

After adding <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> does not work for me. But what worked for me is the following steps Go to change-> Page Properties-> Header / Encoding-> Document Type (DTD) XHTML 1.O Transitional → Unicode Encoding (UTF-8) → Unicode Normalization Form c ( Canonical decomposition followed by Canonical composition) → then select the unicode_signature (specification) check box Apply and ok

0
source

All Articles