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)#", "&eacute;
",
"ALL")>

<CFSET newbody_html = Replace(#FORM.newbody#, "#chr(130)#", "&eacute;",
"ALL")>

<CFSET newbody_html = ReplaceList(#FORM.newbody#, "#chr(130)#", "&eacut
e;")>

<CFSET newbody_html = ReplaceList(#FORM.newbody#, "�", "&eacute;")>


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, &eacute; for this
character), so that these characters will be correctly displayed on all
browsers.


Thank you very much,

Emmanuel Crouvisier
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
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

Reply via email to