|
-
Mar 7th, 2009, 08:20 PM
#1
Thread Starter
Member
[2008] How to get rid of these odd characters?
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.
Last edited by blazen2009; Mar 7th, 2009 at 08:25 PM.
-
Mar 7th, 2009, 08:21 PM
#2
Re: [2008] How to get rid of these odd characters?
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.
-
Mar 7th, 2009, 08:24 PM
#3
Re: [2008] How to get rid of these odd characters?
I think those characters are not printable code, like the Enters, Ctrls, etc.
So you only need to do what Negative0 tell you...
-
Mar 7th, 2009, 08:54 PM
#4
Re: [2008] How to get rid of these odd characters?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|