I have a character being entered by the user in a textfield and as per the functionality I have in my code, the system should append the same character at the end of a string. So if the user enters '$', the system adds '$' so I get '$$' on the textfield.
I want get the unicode or ascii value of the '$' character entered by the user. How do I check for it?