How to remove hidden characters

  • Often I use Notepad++ to remove hidden characters - have just straight ASCII. Recently, I have found that some hidden formatting characters are still present if I paste the text from Notepad++ to an HTML editor.

    How can I remove those characters?

    Thank you.

  • I had this exact problem about a month ago.
    Two seemingly identical lines produced different results in my JavaScript.
    It turned out that there was a hidden character in one line causing it to fail.
    If I remember correctly, I simply changed the encoding in N++ to ANSI to find the hidden characters.
    See if that works for you.

  • Thank you! That appears to have solved my problem.


Log in to reply