I
idiotprogrammer
I'm having a character encoding issue here; I don't have access to the
code in question right at the moment, so my question will be more
general than specific. How generally to avoid encoding mixup problems.
Here's how I've messed up in the past. Previously, I would type text in
Openoffice and cut and paste them into Dreamweaver MX. Usually the
problem was quotations. Cutting and pasting them made them unviewable
in the dreaweaver editor (and the browser too). My solution was to do a
global cut-and-paste, replacing Openoffice's smartquotes with
dreamweaver quotes.
That solved the browser issues when the character encoding was
specified as iso-8859-1 in the html file. But recently I've been
migrating a few dozen static html pages into strict XHTML and using
utf-8, which is causing problems. I'm now editing these files in
Oxygen XMl editor and changing the encoding for all files to utf-8.
I learned that there was a clash between Openoffice/Dreamweaver
encodings, and if I used a special option to save OpenOffice files as
encoded text (and then specifying utf8), the problem would go away.
But I still had 2 dozen files to scrub.
NOW: files in 8859 encoding with dreamweaver-replaced quotes render
fine in browsers, but look awful when I switch encoding at the top of
the HTML file to utf-8 in my xml oxygen text editor.
One workaround I thought about was copying text paragraphs from the
browser into the XML editor, but the problem seems to have resurfaced
(in IE, not Firefox). When I do this, the the text looks perfectly
fine inside the XML editor and renders ok in Firefox, but errors show
up in IE.
When you copy and paste from an application (say a browser, or an html
editor) what kind of encoding are you working with? Why would text
pasted from a browser into an XML editor still have problems in IE (and
yet look ok within the XML Editor).
Any suggestions about how to avoid these encoding mismatches in the
future?
Robert Nagle http://www.imaginaryplanet.net/weblogs/idiotprogrammer/
code in question right at the moment, so my question will be more
general than specific. How generally to avoid encoding mixup problems.
Here's how I've messed up in the past. Previously, I would type text in
Openoffice and cut and paste them into Dreamweaver MX. Usually the
problem was quotations. Cutting and pasting them made them unviewable
in the dreaweaver editor (and the browser too). My solution was to do a
global cut-and-paste, replacing Openoffice's smartquotes with
dreamweaver quotes.
That solved the browser issues when the character encoding was
specified as iso-8859-1 in the html file. But recently I've been
migrating a few dozen static html pages into strict XHTML and using
utf-8, which is causing problems. I'm now editing these files in
Oxygen XMl editor and changing the encoding for all files to utf-8.
I learned that there was a clash between Openoffice/Dreamweaver
encodings, and if I used a special option to save OpenOffice files as
encoded text (and then specifying utf8), the problem would go away.
But I still had 2 dozen files to scrub.
NOW: files in 8859 encoding with dreamweaver-replaced quotes render
fine in browsers, but look awful when I switch encoding at the top of
the HTML file to utf-8 in my xml oxygen text editor.
One workaround I thought about was copying text paragraphs from the
browser into the XML editor, but the problem seems to have resurfaced
(in IE, not Firefox). When I do this, the the text looks perfectly
fine inside the XML editor and renders ok in Firefox, but errors show
up in IE.
When you copy and paste from an application (say a browser, or an html
editor) what kind of encoding are you working with? Why would text
pasted from a browser into an XML editor still have problems in IE (and
yet look ok within the XML Editor).
Any suggestions about how to avoid these encoding mismatches in the
future?
Robert Nagle http://www.imaginaryplanet.net/weblogs/idiotprogrammer/