Roxen.git / server / modules / tags / writefile.pike

version» Context lines:

Roxen.git/server/modules/tags/writefile.pike:167:    if (charset == "utf8")    towrite = string_to_utf8 (towrite);    else if (charset == "iso106461")    towrite = string_to_unicode (towrite);    else if (charset == "iso88591" && String.width (towrite) == 8) {    // Nothing to do.    }       else {    string charset = args->charset || "iso-8859-1"; -  Locale.Charset.Encoder enc; -  if (mixed err = catch (enc = Locale.Charset.encoder (charset))) +  Charset.Encoder enc; +  if (mixed err = catch (enc = Charset.encoder (charset)))    if (has_prefix (describe_error (err), "Unknown character encoding"))    parse_error ("Unknown charset %O.\n", charset);    else    throw (err);    enc->set_replacement_callback (    args["encode-with-entities"] ?    lambda (string chr) {    return sprintf ("&#x%x;", chr[0]);    } :    lambda (string chr) {