I am working on a web application and don't want user to input some invalid characters which are creating problems.
One such character which is causing problem is diamond bullet from MS word but to remove that character I need to know the Unicode of the character so that I could include it in the Python regular expression of invalid characters as suggested here.
textString = some value which need to be checked for invalid characters
pattern = some regular expression for invalid characters
if pattern.search(textString):
print 'Invalid characters found'
else:
print 'Valid string'
I found a similar solution here but this is not working for bullets.
Guys please help me resolving this issue.