This code below is from "functions_filters.asp"
Because of something Bruce said mentioning Vietnamese I thought I would try something.
I commented out the line in red in the code below and no more < 's anywhere so far
'*********************************************
'*** Strip all tags *****
'*********************************************
'Remove all tags for text only display
Private Function removeAllTags(ByVal strInputEntry)
'Remove all HTML scripting tags etc. for plain text output
strInputEntry = Replace(strInputEntry, "&", "&", 1, -1, 1)
strInputEntry = Replace(strInputEntry, "<", "<", 1, -1, 1)
strInputEntry = Replace(strInputEntry, ">", ">", 1, -1, 1)
strInputEntry = Replace(strInputEntry, "'", "'", 1, -1, 1)
strInputEntry = Replace(strInputEntry, """", """, 1, -1, 1)
strInputEntry = Replace(strInputEntry, "\", "\", 1, -1, 1)
' strInputEntry = Replace(strInputEntry, Chr(173), "<", 1, -1, 1) 'Vietmanise < tag
'Return
removeAllTags = strInputEntry
End Function
Now I can assure you I am not running anything odd on my server as far as the locale, character encoding, or whatever goes. I nor any of my users are using Vietamise.
LCID 1033 Server based in East Coast US, all US default settings on everything. That goes for the SQL server as well and the html I am surrounding the forums in. Nothing out of the ordinary here.
Honestly, I don't get why this was happening or how on earth those characters that should not be chr(173) are getting replaced by that line but this fix seems to work so oh well. I am going with it for now. I don't see what it can really hurt as the really important stuff is still getting taken care of by the function.
Edited by dotster - 04 October 2008 at 6:51pm