The problem is that although I have finally gotten the static
text to display right the dynamitic which is queried from a mySQL
database is not being displayed correctly,
I have set checked the database the Spanish, French, and
other translations for the contents are there with the correct
lettering. I have updated the mySQL drivers to 5.0 as recommended
by Adobe, I have placed in the URL string of the JDBC the
?useUnicode=true&characterEncoding=UTF-8 as suggested by
another forum. I have even checked all the pages properties to make
sure that they are in UTF-8 encoding format, below is a sample of
the code I am using what is wrong with the code, or what do I need
to change to fix this problem. You may check the site at
www.scoringag.com and try the languages translations to see further
examples of the problem.
We are using MX7 MySQL4.1 Jconnect5.0
Sample code below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<!---
**
* CF MX Admin "Application.cfm" file
* This file establishes the cfadmin application, as well as
creates handles
* to the services using the factory via CFOBJECT.
*
* Copyright (c) 2001 Macromedia. All Rights Reserved.
* DO NOT REDISTRIBUTE THIS SOFTWARE IN ANY WAY WITHOUT THE
EXPRESSED
* WRITTEN PERMISSION OF MACROMEDIA.
--->
<!--- Set multi-language utf-8 values here
---------------------------------------------------------------------->
<cfprocessingdirective pageencoding="utf-8">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<cfset URLenChar = "utf-8" >
<!--- Set encoding to utf-8. --->
<cfset setEncoding("URL", "utf-8")>
<cfset setEncoding("Form", "utf-8")>
<cfparam name="url.login" default="">
<!--- Set the output encoding to utf-8 --->
<cfcontent type="text/html; charset=utf-8">
</head>
<cfset SESSION.locale='es'>
<!--- <div id="home_contents"> --->
<style type="text/css">
<!--
.style2 {color: #ff0000}
-->
</style>
<div id="content">
<table align="center" width="100%">
<tr><center>
<div align="center" style="width:100%; font-size:13px;
font-weight:500; color:#000000; "><br />
<a href="
http://www.cfsan.fda.gov/~dms/fsbtac23.html"
target="_blank" class="style2" >*** Important Information
(please read)! ***<br />
FDA Fact Sheet ScoringAg has the Solution! </a><br
/>
<a href="Public/docs/Acciones de la FDA en la nueva
legislacion del Bioterrorismo.pdf" target="_blank"
class="style2">Haga clic para aquà ver
los Hechos de los USA FDA - en Español</a> <br
/>
<br />
<cfscript>ssite.translate('#SESSION.Locale#', 1,
111);</cfscript></div><br />