I am trying to write a VB function to replace these awkward characters in a string:
Replace with Single Quote ('):
’
Replace with DASH (-):
–
Replace with 2 Single Quotes (''):
“ (or) â€
Replace with 3 Periods ( ... ):
…
Function CleanString(strInput)
mySTemp = Replace(Replace(Replace(Replace(Replace(strInput,"–", "-"), "“", "''"), "â€", "''"), "…", " ... "), "'", "''")
CleanString = mySTemp
End Function
I am super tired, and I can't get this function to work. Please help. Any suggestions or information would be appreciated. Thank you in advance.
Replace with Single Quote ('):
’
Replace with DASH (-):
–
Replace with 2 Single Quotes (''):
“ (or) â€
Replace with 3 Periods ( ... ):
…
Function CleanString(strInput)
mySTemp = Replace(Replace(Replace(Replace(Replace(strInput,"–", "-"), "“", "''"), "â€", "''"), "…", " ... "), "'", "''")
CleanString = mySTemp
End Function
I am super tired, and I can't get this function to work. Please help. Any suggestions or information would be appreciated. Thank you in advance.