I'm surprised this isn't working for you. I can't see much different
in
what you're doing from what I'm doing in one of my apps:
<cfset bodytext="#Replace(bodytext, "#chr(27)#", " ", "ALL")#">
Have you tried this:
<CFSET newbody_html = "#Replace(FORM.newbody, "#chr(130)#",
"é",
"ALL")#">
Howard Owens
Internet Operations Coordinator
www.insidevc.com
[EMAIL PROTECTED]
AIM: GoCatGo1956
> -----Original Message-----
> From: Emmanuel Crouvisier [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, October 04, 2001 3:41 PM
> To: CF-Talk
> Subject: Replacing ASCII characters
>
> I'm pulling out my hair here trying to replace characters with
accents
> (ie: �, �, etc) as nothing seems to be working in my replace
statemen
> ts.
>
> I've tried the following, all to no avail:
>
> <CFSET newbody_html = REReplace(#FORM.newbody#, "#chr(130)#",
"é
> ",
> "ALL")>
>
> <CFSET newbody_html = Replace(#FORM.newbody#, "#chr(130)#",
"é",
> "ALL")>
>
> <CFSET newbody_html = ReplaceList(#FORM.newbody#, "#chr(130)#",
"&eacut
> e;")>
>
> <CFSET newbody_html = ReplaceList(#FORM.newbody#, "�",
"é")>
>
>
> When I try other values for my 'what' and 'with' strings, the
replaces
> work fine, ie:
>
> <CFSET newbody_html = ReplaceList(#FORM.newbody#, "A", "a")>
>
> Will successfully replace all letter capital A's with lower case a's.
>
>
> Any idea why replace isn't picking up these ascii characters, in
either
> its true value (�) or through the chr(130) notation? (130 is, of
course
> ,
> the correct ascii code for this character).
>
>
> What I'm trying to build in the long run is a tag to replace all
> multilingual characters with the HTML equivalent (ie, é for
this
> character), so that these characters will be correctly displayed on
all
> browsers.
>
>
> Thank you very much,
>
> Emmanuel Crouvisier
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists