Help with page encoding issue and weird characters


Posted on 16th Feb 2014 07:03 pm by admin

I'm trying to write a screen scraper and when I pull out the lines of the html file that I'm interested in and put them in a variable, I end up with a few extra weird characters in my string that I wasn't expecting. And I'm having a hell of a time stripping those characters out. Its some type of encoding issue I think because the char shows up different in IE versus FF (which it shows up as a black diamond with a question mark in it). Anyone have any ideas ?

No comments posted yet

Your Answer:

Login to answer
76 Like 38 Dislike
Previous forums Next forums
Other forums

getting rid of quotes in strings
sick of trying to deal with them in multiple ways (entering in and taking from database, echoing, ec

DELETE rows based on content
I have a link in my rows

$bit="http://bit.ly/abcd";
$query = mysql_query("D

cURL Sending File as Post
This is a bit complicated, I'm just hoping someone else has run into this and knows how to do it a d

Casting Decimals in Oracle
This code worked as a query in DB2, but I am not sure what the syntax is for casting decimals in Ora

Date/Time and Checkbox
Hi Everyone,

I am trying to figure out how to insert the current date and tim

download directory onto C drive
I am attempting (if this is possible) to write a routine to automatically dump the contents of a dir

Files in current folder. Should be an easy fix.
Never mind. I've asked about this before and just found my answer. Anyway to delete this?

A problem with my GD class
Hello,

I created a nice (and simple for now) GD class.
The problem is , it works great on

PHP error. Need help urgently
Hi,

I am programming a php site and have a problem that i just cant find out how to fix. When

pagination numbering pattern
Hello,

I have following code which works great for pagination. but i have small issue now.

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash