Not sure about the demoronize, but I use this function to convert the
extended characters to their corresponding html entities. Our CFMX is set up
as unicode, so YMMV. That was one of the issues I saw with the conversion
from 5.0 to MX - the way in which extended characters were interpreted by
the MX server changed.

<!--- Note - you need to use the escapequotes() function in your forms
instead of htmleditformat --->
<cfscript>
function unicodeToHTML(textin) {
var textout = "";
textout = replacelist(textin,
"#chr(8216)#,#chr(8217)#,#chr(8218)#,#chr(8220)#,#chr(8221)#,#chr(8212)#,#ch
r(8211)#
,#chr(8230)#,#chr(8226)#,#chr(732)#,#chr(8482)#,#chr(8364)#,#chr(402)#,#chr(
8222)#,#chr(8224)#,#chr(8225)#,#chr(8249)#,#chr(8250)#,#chr(169)#,#chr(176)#
,#chr(162)#,#chr(163)#","&lsquo;,&rsquo;,&##130;,&ldquo;,&rdquo;,&mdash;,&nd
ash;,&hellip;,&bull;,&tilde;,&trade;,&euro;,&##131;,&##132;,&##134;,&##135;,
&##139;,&##155;,&copy;,&deg;,&cent;,&##163;");

return textout;
}

function escapequotes (textin) {
var textout = "";
textout = replacelist(textin, '#chr(148)#,#chr(147)#,"',
'&rdquo;,&ldquo;,&ldquo;' );
return textout;
}
</cfscript>
----- Original Message -----
From: "Jake" <

> Does anyone know if the DeMoronize() UDF works with MX? I'm having
> troubles getting it to work correctly, and I seem to remember reading
> somewhere that there were issues with it with MX.
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to