Solved

php cURL returned character set

Posted on 2014-01-10
2
391 Views
Last Modified: 2014-01-10
when i view a particular web page via a browser, the
one-fourth character shows as ¼  (displays as a fraction character)

when i scrape the same page and display,
it's converted to ¿    which appears in my browser as a black diamond with a white ?

is there an option for cURL not to translate character sets?

thanks
0
Comment
Question by:willsherwood
2 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39772249
Are you displaying the data in the same character set as the original page?
0
 

Author Comment

by:willsherwood
ID: 39772350
thanks for the trigger to re-look at that (there were two doc-type   tags!)
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now