close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Multiple <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'s

Thread began 10/08/2010 9:22 am by Dave Buchholz | Last modified 5/20/2014 4:25 pm by Dave Buchholz | 6963 views | 21 replies


For those that would like to rid themselves of this problem, there is a really easy solution that is working 100% for me.

FIRST: Figure out the exact string that Dreamweaver is generating for the META Content Type tag... It will be different depending on your setup. Just create a new page and see what is being generated. In my situation it is the same as Dave's "<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />", but yours may differ.

SECOND: Open: webasssit > framework > framework.php
Near the bottom of the page, you will see some entries starting with: "head=preg_replace......"

THIRD: In that mix of entries (I put mine just before those begin) add this line (remember to replace my string with your string):
$head=str_replace("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />","",$head);

RESULT: That removes the EXACT string if it is found, only on the included pages... No more duplicate "Content Type" meta tags. You can add more than one entry if you want or need...

NOTE: str_replace is a lot faster than "preg_replace" which is why I went that route but it only works with exact strings. You could use preg_replace and write a regex that matches any "Meta Content Type" pattern...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...