Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Replace ascii cahracters in asp

    hey guys,

    im looking for a character map replace if there is one,
    so i dont have to do the whole thing myself...

    Code:
    strTemp = Replace(strText,"'","'")
    strTemp = Replace(strTemp,"&","&")
    strTemp = Replace(strTemp,"",""")
    strTemp = Replace(strTemp,"",""")
    strTemp = Replace(strTemp,"","'")
    strTemp = Replace(strTemp,"","'")
    strTemp = Replace(strTemp, "", "–")
    strTemp = Replace(strTemp, "", "—")
    strTemp = Replace(strTemp, "", "¯")
    strTemp = Replace(strTemp, "", "²")
    strTemp = Replace(strTemp, "", "³")
    strTemp = Replace(strTemp, "", "À")
    strTemp = Replace(strTemp, "", "Á")
    strTemp = Replace(strTemp, "", "Â")
    strTemp = Replace(strTemp, "", "Ä")
    strTemp = Replace(strTemp, "", "Ç")
    strTemp = Replace(strTemp, "", "È")
    strTemp = Replace(strTemp, "", "É")
    strTemp = Replace(strTemp, "", "Ê")
    strTemp = Replace(strTemp, "", "Ë")
    strTemp = Replace(strTemp, "", "Ì")
    strTemp = Replace(strTemp, "", "Í")
    strTemp = Replace(strTemp, "", "Î")
    strTemp = Replace(strTemp, "", "Ï")
    strTemp = Replace(strTemp, "", "Ò")
    strTemp = Replace(strTemp, "", "Ó")
    strTemp = Replace(strTemp, "", "Ô")
    strTemp = Replace(strTemp, "", "Ù")
    strTemp = Replace(strTemp, "", "Ú")
    strTemp = Replace(strTemp, "", "Û")
    strTemp = Replace(strTemp, "", "Ü")
    strTemp = Replace(strTemp, "", "ß")
    strTemp = Replace(strTemp, "", "à")
    strTemp = Replace(strTemp, "", "á")
    strTemp = Replace(strTemp, "", "â")
    strTemp = Replace(strTemp, "", "ã")
    strTemp = Replace(strTemp, "", "ä")
    strTemp = Replace(strTemp, "", "ç")
    strTemp = Replace(strTemp, "", "è")
    strTemp = Replace(strTemp, "", "é")
    strTemp = Replace(strTemp, "", "ê")
    strTemp = Replace(strTemp, "", "ë")
    strTemp = Replace(strTemp, "", "î")
    strTemp = Replace(strTemp, "", "ï")
    strTemp = Replace(strTemp, "", "ñ")
    strTemp = Replace(strTemp, "", "ò")
    strTemp = Replace(strTemp, "", "ó")
    strTemp = Replace(strTemp, "", "ô")
    strTemp = Replace(strTemp, "", "õ")
    strTemp = Replace(strTemp, "", "ö")
    strTemp = Replace(strTemp, "", "ù")
    strTemp = Replace(strTemp, "", "ú")
    strTemp = Replace(strTemp, "", "û")
    strTemp = Replace(strTemp, "", "ü")
    strTemp = Replace(strTemp, "?", "!")
    strTemp = Replace(strTemp, "#", "")
    strTemp = Replace(strTemp, "", "c")
    strTemp = Replace(strTemp, "", "o")
    strTemp = Replace(strTemp, "", "<")
    strTemp = Replace(strTemp, "", "y")
    
    strTemp = Replace(strTemp, "", "e")
    strTemp = Replace(strTemp, "", "r")
    strTemp = Replace(strTemp, "", "a")
    strTemp = Replace(strTemp, "", "1/2")
    strTemp = Replace(strTemp, "", "tm")
    and so on...

    thanks in advance

    baleric
    Last edited by Baleric; 01-14-2007 at 03:13 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •