cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: How to get HTTP charset? I wanna do charset conversion(or maybe libcurl already has this feature)

From: Alexandre Morgaut <Alexandre.Morgaut_at_4d.com>
Date: Thu, 10 Jun 2010 17:17:30 +0200

Some can't fix the content-type HTTP header and then specify it as a meta in the HTML content

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
...

But still...
As some editors set this meta html tag by default from templates, even this information isn't already true

Your choice to add a byte based charset detection script or to accept that badly formatted document won't be well supported

On Jun 10, 2010, at 5:04 PM, Michael Wood wrote:

> Hi
>
> 2010/6/10 kartwall <kartwall_at_126.com>:
> [...]
>> Yeah, I got it. I found in HTTP response headers, "Content-Type:
>> text/html; charset=UTF-8" is what I want. I can check out the charset here.
>
> The problem is that you will find many pages that claim to be utf-8,
> but are actually iso-8859-1 or something else.
>
> --
> Michael Wood <esiotrot_at_gmail.com>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-10

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET