CResponse::setCharSet

The CResponse::setCharSet function sets the value of the CharSet property.

int setCharSet(
chchar * charSet // containing the new CharSet value
);



Return Type

int
Upon successful completion, zero is returned. Otherwise, a value of non-zero is returned.


Parameters

charSet
A string containing the new CharSet value.


Remarks

This function sets the value of the CharSet property of the object. The CResponse::getCharSet function can retrieve the character set of the current HTML page.


See Also

CResponse, CResponse::getCharSet

Example