I've built a scraper that input text in a text file, but I am seeing these odd things beside the text that look like small "[]". These are not letters numbers, brackets, etc. I tried trim() but that will not get rid of them.
Printable View
I've built a scraper that input text in a text file, but I am seeing these odd things beside the text that look like small "[]". These are not letters numbers, brackets, etc. I tried trim() but that will not get rid of them.
Odds are they are a character that cannot be displayed. If you can figure out what the character is (possibly from the byte code) you should be able to do a replace with "" on them to get rid of them.
I think those characters are not printable code, like the Enters, Ctrls, etc.
So you only need to do what Negative0 tell you...
Or, if these symbols appear as normal characters if you'd open the textfile elsewhere, it'd mean that you arent using the proper encoding when reading the file.