Why won't htmleditformat or htmlcodeformat work for you?

______________________
steve oliver
atnet solutions, inc.
http://www.atnetsolutions.com


-----Original Message-----
From: list peters [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 02, 2002 12:17 AM
To: CF-Talk
Subject: htmleditformat and unicode!


hi,
i realise unicode is not supported in cold fusion, and you cant use
funky
functions like htmleditformat - however i am using unicode with cold
fusion
and have some problems.

I need to use an equivalent of htmleditformat to safetly dump a japanese
text sring into a hidden form field.

I only want to convert characters that would destory the form, such as
"<>,
etc.

So far I have (and it seems to be working!)

<cfset content = Replace(content, "<", "&lt;", "ALL")>
<cfset content = Replace(content, ">", "&gt;", "ALL")>
<cfset content = Replace(content, """", "&quot;", "ALL")>

Is there anything else i need to be looking for?
Or is there a better way of doing this?

thanks for your help

chad


______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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