Hello,

Yesterday I posted a problem about displaying French characters (é, à, ...)
coming out of a MySql database.
Today I found the (not obvious) solution, posted on this URL:
http://www.dialoguedesigns.co.uk/dc2/page.cfm?pageid=cfmxproblems

This is the solution:

1. In the ColdFusion MX Administrator open the datasource properties for
your MySql datasource,
click on Advanced Properties, and put the following in the 'connection
string' box:
useUnicode=true&characterEncoding=iso-8859-1

2. Place the following in application.cfm:
<cfset setEncoding("url","ISO-8859-1")>
<cfset setEncoding("form","ISO-8859-1")>
<cfcontent type="text/html; charset=ISO-8859-1">

3.(optional) At the top of each cfm page you should add:
<cfprocessingdirective pageEncoding="ISO-8859-1">
In my case it worked also without (3).

I hope this will safe others from a full day of struggling...

regards,

Frederik Van Goolen
project ingenieur
Technopolis
Technologielaan
2800 Mechelen
tel (32) (0)15 34 20 20
fax (32) (0)15 34 20 10
mailto:[EMAIL PROTECTED]
http://www.technopolis.be

De bovenvermelde berichten/tekst en bijlagen verbinden Stichting
F.T.I/Technopolis op geen enkele wijze, tenzij anders werd overeengekomen
bij een schriftelijke overeenkomst of tenzij zij later worden bevestigd bij
een overeenkomstig de wettelijke voorschriften ondertekende brief.  Evenmin
kunnen Stichting F.T.I/Technopolis aansprakelijk worden gesteld op grond van
de inhoud van deze berichten/tekst en bijlagen.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to