Is there a tool for finding the Char code of a character?

I am trying to write a VB function to strip unwanted characters from a string. It is for generating a 'clean' url from data that has been inputted into a CMS. Someone has copied and pasted from a Word document and so there appears to be an mdash or ndash in the product title. This results in ─ appearing instead of -

I have tried a Replace(text, Chr(196), Chr(45)) but it isn't working so it can't be 196. Is there a tool or something where I can copy this character and paste it into the tool and it will tell me what char code it is?

Thanks.


ANSWERS:


Try here or here. From 2nd link I can see that your char is alt150


You can make your program write out the Character Code using the finction Asc()

Response.write Asc("-") would write out

45

for example.



 MORE:


 ? XML parsing of some special characters using SAX parser in Android
 ? php header location - french characters
 ? How does hyphen, en-dash and em-dash gets stored in oracle database having character set WEISO98859P1?
 ? How does hyphen, en-dash and em-dash gets stored in oracle database having character set WEISO98859P1?
 ? How does hyphen, en-dash and em-dash gets stored in oracle database having character set WEISO98859P1?
 ? how to use different oracle character sets in one application
 ? Character set issues with Oracle Gateways, SQL Server, and Application Express
 ? Few records in some tables are getting rejected (while running the import) after changing the Oracle database character-set to UTF-8 (AL32UTF8)
 ? Can't insert arabic characters into oracle database
 ? SSIS 2008 R2 - Convert Oracle Character set data (with french accent)