[thelist] CFMX problem - HTML output cut off - and character encoding

Sarah poohbear at designshift.com
Tue Jul 15 08:49:42 CDT 2003


> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: Sarah Sweeney
> >
> > Apparently, using
> >    <cfcontent type="text/html; charset=ISO-8859-1">
> > was causing the problem, and changing it to
> >    <cfcontent type="text/html; charset=ISO8859-1">
> > fixes the problem.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
>where in your code are you calling the <cfcontent> tag?
>
>when you look in your browser to see what the content-encoding is, what does
>it tell you?  i just tried it and it says iso, but haven't tested it in
>enough browsers to know for sure.  give it a try with all lowercase for the
>charset.
>
>good luck,
>
>.jeff

Thanks for the suggestion, Jeff, using lowercase (i.e. "iso-8859-1") also 
worked, and is a much more satisfactory solution than what I originally had.

However, this brings up a related question (and an answer to your question 
about where I have the <cfcontent> tag. Because of problems I was having 
with accented characters and curly quotes, I've added the following to my 
Application.cfm file (these came from two suggested solutions, so I used 
both to be thorough):
<cfprocessingdirective pageencoding="iso-8859-1">
<cfcontent type="text/html; charset=iso-8859-1">
Would you or anyone else happen to know which of these is the preferred 
method of dealing with character encoding problems?

Sarah





More information about the thelist mailing list