Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
tomtedeschi #1
Re: cfhttp and accentued characters
Hello-
I'm also having this problem. We're using ColdFusion MX 6.1 as a front-end to
a MySQL database. The database contains extended ASCII characters in one of its
text fields (for example, accented vowels). ColdFusion doesn't seem to display
these correctly however.
I've tried these CF tags as suggested in other posts:
<cfheader name="Content-Type" value="text/html; charset=ISO-8859-1">
<cfcontent type="text/html; charset=iso-8859-1">
<cfprocessingdirective pageEncoding="ISO-8859-1">
as well as using a META content-type directive in the HTML-output portion of
my CF page:
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=ISO-8859-1">
No luck. The extended characters display as question marks on CF output, but
display correctly when I look at the actual SQL data with PHPMyAdmin.
I'm not making a CFHTTP request, but rather outputting from a DB query, so I'm
guessing that CFHTTP won't help me?
The CF documentation leads me to believe that some settings might have to be
changed in the application.cfm file? (which we don't have access to,
unfortunately, since this is on a shared server). Any thoughts would be greatly
appreciated.
- Tom Tedeschi
tomtedeschi Guest
-
CFHTTP
Hello, I need to send data from a CF page to an asp.net page for processing via a URL string. The ASP page takes three parameters. Those being... -
CFHTTP WEB AUTHENTICATION
Hi, I just want to parse a site which needs a web authentication. I've tried it with cfhttp username and password, but I always get the ... -
CFHTTP help
We have an in-house built publication system that creates .htm files from database content. For a specific project, I need to modify the way that... -
how to read japanese characters (multilingual characters) from a text file and save them in Access database ???
HI All i m trying to read a text file, having some japanese characters and saved as UTF-8 encoding. I m using ASP,FSO ... my code is below,... -
Numeric characters after alphabetic characters sorting varchar2 fields
Hi! Why numeric characters are placed after alphabetic characters sorting varchar2 fields? Example: AAA BBB 111 FFF XXX -
tomtedeschi #2
Re: cfhttp and accentued characters
Was able to answer my own question:
In CF-Admin, set the connectionstring for the MySQL database under "advanced
settings" to:
useUnicode=true&characterEncoding=ISO-8859-1
If you're on a shared host system, you might have to have a tech. support
person do this for you. Also, it's not necessary, but doesn't hurt to create an
Application.cfm file in the root directory of your CF application with the
following contents:
<cfapplication name="YOURAPPLICATIONNAMEHERE">
<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">
Replace YOURAPPLICATIONNAMEHERE with something else, of course...
:-)
tomtedeschi Guest



Reply With Quote

