how to eliminate weird characters?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ramya kandasamy
    New Member
    • Apr 2010
    • 9

    how to eliminate weird characters?

    how can i block the weird characters ,when the user has given the request as weird characters in my html text box.how can i use java script to filter that character and that should not be displayed.
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    Use regular expressions.

    Regards
    Dheeraj Joshi

    Comment

    • ramya kandasamy
      New Member
      • Apr 2010
      • 9

      #3
      Re:

      Thanks dheerajjoshim !!!

      For instance when pound symbol is saved in database and while retrieving it gives a weird character with a latin letters. Got the solution of using UTF-8 for eliminating the character. Still its not constant. There is a transition in output. Can anyone help me to sort out?

      Comment

      Working...