Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
tomtedeschi #1
CFFILE and extended ASCII/accented characters
Hello-
I'm using CF 6.1 as a front-end to a MySQL database that happens to contain
extended ASCII characters (e.g., accented vowels). CF displays the characters
correctly onscreen, but if I use CFFILE to try to output to a file the
characters are converted to something strange -- question marks or some other
kind of extended character.
In CF-Admin, I've set the connectionstring for the MySQL database to:
useUnicode=true&characterEncoding=ISO-8859-1
I've also created an Application.cfm file in the root directory of my CF
application with the following contents:
<cfapplication name="journalist_project">
<cfcontent type="text/html; charset=ISO-8859-1">
<cfscript>
setencoding("form", "ISO-8859-1");
setencoding("url", "ISO-8859-1");
</cfscript>
<cfprocessingdirective pageencoding="iso-8859-1">
Any thoughts? Thanks in advance!
- Tom Tedeschi
tomtedeschi Guest
-
Accented characters in PHP code messed up
Hi, I edit several PHP pages with Contrbute (since the first release) for my Web site. I found a problem lately. If I got accented characters in... -
MX and Panther: can't type accented characters
SOS. I can't get a reply from Macromedia on this one: Under Panther OSX 10.3 in Director MX, you can't type in accented characters (such as... -
[PHP] HTML equivalents of accented characters
Hello, This is a reply to an e-mail that you wrote on Mon, 11 Aug 2003 at 19:18, lines prefixed by '>' were originally written by you. sure... -
Trouble with extended ascii
We are creating a project that will be used with Spanish, French and German alphabets. Since Director doesn't support unicode, we are using extended... -
extended ascii delimiters when when writing to outputstream
Whenever I write to Response.Outputstream after doing a plain response.write, I get a delimiter between the two writes that is made up of three... -
PaulH #2
Re: CFFILE and extended ASCII/accented characters
while i don't think this is required, you might try adding a charset="iso-8859-1" to your cffile call.
PaulH Guest
-
tomtedeschi #3
Re: CFFILE and extended ASCII/accented characters
Thanks for the quick reply, Paul. I forgot to mention that I did do that. The
characters were encoded as some kind of unintelligable high-ASCII characters
(ellipses, degree signs, etc.), but not as accented ones. I tried a number of
different encodings in CFFILE, but the result was the same. Just to be sure, I
then changed the code so that the output was to the screen rather than to the
file, and all looked fine. Go figure.
- Tom
tomtedeschi Guest
-
PaulH #4
Re: CFFILE and extended ASCII/accented characters
then i'll guess some kind of mysql monkey business maybe mangled the chars. can
you put in fresh data & see?
btw <cfprocessingdirective pageencoding="iso-8859-1"> has to go on each cf
page it won't work from the application.cfm
PaulH Guest



Reply With Quote

