Skip to main content
Participating Frequently
February 22, 2009
Question

replace '·' to my_middot

  • February 22, 2009
  • 2 replies
  • 256 views
I like to replace '·' (· - interpuct) which is retrieved from database.

The value of myQuery.string of the attached code is '·'.

The result of the attaced code is '·' although I expect 'my_middot'

How can I replace '·' to 'my_middot'?


    This topic has been closed for replies.

    2 replies

    Inspiring
    February 22, 2009
    "joonstar" <webforumsuser@macromedia.com> wrote in message news:gnqcq9$8uh$1@forums.macromedia.com...
    >I like to replace '?' (&middot; - interpuct) which is retrieved from database.
    >
    > The value of myQuery.string of the attached code is '?'.
    >
    > The result of the attaced code is '?' although I expect 'my_middot'
    >
    > How can I replace '?' to 'my_middot'?
    >
    >
    > <cfquery datasource='db1' name='myQuery'>
    > select string
    > from myTable
    > where id=1
    > </cfquery>
    > <cfoutput>
    > #replace(myQuery.string,'?','my_middot')#
    > </cfoutput>
    >

    Try this:

    #Replace(myQuery.string,'?','&middot;','ALL')#

    --
    Ken Ford
    Adobe Community Expert - Dreamweaver/ColdFusion
    Adobe Certified Expert - Dreamweaver CS3
    Adobe Certified Expert - ColdFusion 8
    Fordwebs, LLC
    http://www.fordwebs.com
    http://www.cfnoob.com

    Inspiring
    February 22, 2009
    What actually happens when you run that code?