EVOLUTION-MANAGER
Edit File: findHTTPHeaderEncoding.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Find the encoding of the HTTP response from the HTTP header</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for findHTTPHeaderEncoding {RCurl}"><tr><td>findHTTPHeaderEncoding {RCurl}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Find the encoding of the HTTP response from the HTTP header</h2> <h3>Description</h3> <p>This function is currently made available so it can be called from C code to find the charset from the HTTP header in the response from an HTTP server. It maps this charset value to one of the known R encodings (UTF-8 or LATIN1) or returns the native encoding. </p> <p>This will most likely be removed in the future. </p> <h3>Usage</h3> <pre> findHTTPHeaderEncoding(str) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>str</code></td> <td> <p>one or more lines from the HTTP header</p> </td></tr> </table> <h3>Value</h3> <p><code>NA</code> or an integer value indicating the encoding to be used. This integer corresponds to the <code>cetype_t</code> enumeration in Rinternals.h. </p> <h3>Author(s)</h3> <p>Duncan Temple Lang</p> <h3>References</h3> <p>Writing R Extensions Manual and the section(s) on character encodings</p> <h3>Examples</h3> <pre> findHTTPHeaderEncoding("Content-Type: text/html;charset=ISO-8859-1\r\n") findHTTPHeaderEncoding("Content-Type: text/html; charset=utf-8\r\n") </pre> <hr /><div style="text-align: center;">[Package <em>RCurl</em> version 1.98-1.2 <a href="00Index.html">Index</a>]</div> </body></html>