We are having problems with Contribute retaining UTF-8 FILE encoding when
creating a new page from a template.
A little background info:
We have created a template using Dreamweaver that is to be used fortnightly in
Contribute (V2.0, but we have tested this with V3.0 also, same problem) to
create a company newsletter. Being a newsletter in New Zealand, Maori specific
characters, and of course anything copy and pasted from MS Word, should remain
as is, when published. The template specifies UTF-8 page encoding (in the HTML
header) and the template file itself is UTF-8 encoded. Contribute has also been
configured to create all new pages as UTF-8.
The problem:
When we create a new page, using the template, everything looks fine, at
first... We can copy and paste from MS Word, it looks fine, and the page
encoding is UTF-8. When we save the page ('Save for Later') or publish the
page, all the special characters (Maori spefic, long hyphens, apostrophes, etc)
change to nasty things like ' ???'.
The cause:
When Contribute creates the new page, it retains the PAGE encoding, but it
removes the FILE encoding (UTF-8 FILE encoding is 2 bits added to the beginning
of the file, generally not visible, but you can see them in the file's bit
code. These 2 bits are what Notepad add, when you save a text file as UTF-8).
The solution:
This is where we are stuck... I know other people have had this problem, but I
have yet to have found a solution. Does anyone know what it is? This seems to
be a Contribute problem. Dreamweaver can deal with UTF-8 encoded files just
fine.
Any ideas??