House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

strip ntext chars

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John M Bliss
10/18/2012 09:42 AM

Hi. I have a database column that is (for now) of type text. (For now) I cannot change it to ntext. What's the best way to use CF to strip out (or replace) characters that require ntext prior to inserting the text. Here's my first attempt which did not seem to work: <cfloop index="charcounter" from="1" to="#len(FileContent)#"> <cfif asc(mid(FileContent, charcounter, 1)) GT 255> <cfset FileContent = replace(FileContent, mid(FileContent, charcounter, 1), "?", "all")> </cfif> </cfloop> -- John Bliss - http://about.me/jbliss

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John M Bliss
10/18/2012 01:15 PM

Is this a stumper? Or a stupid question?  :-) On Thu, Oct 18, 2012 at 8:42 AM, John M Bliss <bliss.john@gmail.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- -- John Bliss - http://about.me/jbliss

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Robert Harrison
10/18/2012 01:29 PM

You're converting from Ntext to Text? Robert Harrison Director of Interactive Services Austin & Williams Advertising I Branding I Digital I Direct   125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X 119   F 631.434.7022   http://www.austin-williams.com Blog:      http://www.austin-williams.com/blog Twitter:  http://www.twitter.com/austin_

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Robert Harrison
10/18/2012 01:34 PM

Reread your post. You may want to look at Ben Nadel's blog: http://www.bennadel.com/blog/1155-Cleaning-High-Ascii-Values-For-Web-Safeness-In-ColdFusion.htm Robert Harrison Director of Interactive Services Austin & Williams Advertising I Branding I Digital I Direct   125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X 119   F 631.434.7022   http://www.austin-williams.com Blog:      http://www.austin-williams.com/blog Twitter:  http://www.twitter.com/austi

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John M Bliss
10/18/2012 01:39 PM

Oh, sweet! Thanks! (I owe Ben SO MANY BEERS. And, of course, Ray.) On Thu, Oct 18, 2012 at 12:34 PM, Robert Harrison < robert@austin-williams.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Raymond Camden
10/19/2012 09:57 AM

Ben doesn't drink beer, so I get his. On Thu, Oct 18, 2012 at 12:38 PM, John M Bliss <bliss.john@gmail.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John M Bliss
10/19/2012 10:15 AM

Fair enough. On Fri, Oct 19, 2012 at 8:56 AM, Raymond Camden <raymondcamden@gmail.com>wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 21, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference