Btw, today I found a new "problem" with accents and CFMX, now related to external 
Javascript library files.

If CFMX is serving pages with UTF-8 (the default behaviour) and you have external js 
library files saved with the ISO-8859-1 encoding, you may face problems.

Code to reproduce a problem (MSIE 6):

- index.cfm
<html>
<head>
<title>CFMX with external JS</title>
<script language="JavaScript" src="lib.js"></script>
</head>
<body>
<form name="myForm">
<input type="text" name="name" value="">
<input type="button" value="load" onClick="displayValue();">
</form>
</body>
</html>

- lib.js (save ISO-8859-1 encoded)
var myValue = '�';
function displayValue() {
document.myForm.name.value=myValue;
} 

Possible workarounds:

1. save the .js files UTF-8 encoded
2. include <cfcontent type="text/html; charset=iso-8859-1"> in your Application.cfm
3. call the JS library with <script language="JavaScript" src="lib.js" 
charset="iso-8859-1"> (HTML 4)

Regards,
Marcello.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to