Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Character ? replacement 1

Status
Not open for further replies.

jmcg

Technical User
Jun 30, 2000
223
GB
I have a character ? appearing in a data stream. I have tried to get it changed in the feed but cannot so need to replace it. However I cannot find the character in the ASCII mappings. When I paste ? into a VBA module it appears as „¢. I have tried to replace this but it is not found.
Any suggestions on how I can replace this character?
 
Asc("?") returns 63

Chr(63) returns ?

Is that what you are looking for?


Paul
 
Paul
Thanks but no. When I previewed this post it showed the character correctly but in the final post it changed to ?.
Will try it in a code box to see if that helps.
Code:
 ?
 
Still the same!!!
As an image
char.gif
it is the bit in the middle.
Thanks again
 
Can you check for valid characters and try and trap it that way? You could create a function that tests all the characters in your string against the Ascii list and if it doesn't register then try using a Replace function to change it.
I can assist with the Function if you need it.


Paul
 
Thank Paul that sounds like the way to do it. Seems strange though that is does not appear in ASCII or in the Windows Character Map either!
Will be ok doing the function, thanks for the offer.
 
I checked some character sets (HTML, Windows and stuff) and couldn't find the character either.
Good luck.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top