rem: Conn *connPtr;
context: NsGetTypeEncodingWithDef(char *type, int *used_default){    char *s, *e;    Tcl_Encoding ret_enc = NULL;    Conn *connPtr;    s = Ns_StrCaseFind(type, "charset");    if (s != NULL) {	s += 7;	s += strspn(s, " ");        *used_default = NS_FALSE;	if (*s++ == '=') {	    s += strspn(s, " ");	    e = s;	    while (*e && !isspace(UCHAR(*e))) {		++e;	    }	    ret_enc = GetCharsetEncoding(s, e-s);        }    } else if (strncasecmp(type, "text/", 5) == 0) {        *used_default = NS_TRUE;        ret_enc = GetDefaultEncoding();    } else {        *used_default = NS_FALSE;    }    return ret_enc;}