Forum Moderators: open

Message Too Old, No Replies

Converting e-mail address to character entities

... or something else

         

Captaffy

10:31 pm on Nov 9, 2003 (gmt 0)

10+ Year Member



I have a page written in asp which essentially displays a lot of email addresses from within a database.

I don't anticipate being allowed to display these addresses using the javascript anti-spam method, so I was planning on converting every character to it's character entity even though I doubt that it will do much to thwart email harvesters.

I saw in the PHP bag 'o tricks II discussion a method for doing just that which used a function called 'ord'. 'Ord' seems to convert the character to its decimal equivalent.
I am hoping that there is a similar function in ASP.

WebJoe

11:42 pm on Nov 9, 2003 (gmt 0)

10+ Year Member



convert the character to its decimal equivalent.

What do you mean by that? Its ISO-8859-1 decimal character reference? Then you're looking for the
Asc()
-function, which will give you the characters ASCII-code.

Captaffy

11:52 pm on Nov 9, 2003 (gmt 0)

10+ Year Member



What do you mean by that? Its ISO-8859-1 decimal character reference?

Yes, that's exactly what I meant. I really had no idea what that number was called.

Thank you!