Blame | Last modification | View Log | Download | RSS feed
\name{findHTTPHeaderEncoding}\alias{findHTTPHeaderEncoding}\title{Find the encoding of the HTTP response from the HTTP header}\description{This function is currently made available so it can be calledfrom C code to find the charset from the HTTP header in theresponse from an HTTP server. It maps this charset valueto one of the known R encodings (UTF-8 or LATIN1)or returns the native encoding.This will most likely be removed in the future.}\usage{findHTTPHeaderEncoding(str)}\arguments{\item{str}{one or more lines from the HTTP header}}\value{\code{NA} or an integer value indicating the encodingto be used. This integer corresponds to the \code{cetype_t} enumerationin Rinternals.h.}\references{Writing R Extensions Manual and the section(s) on character encodings}\author{Duncan Temple Lang}\examples{findHTTPHeaderEncoding("Content-Type: text/html;charset=ISO-8859-1\r\n")findHTTPHeaderEncoding("Content-Type: text/html; charset=utf-8\r\n")}\keyword{IO}\keyword{programming}