function StringChannel(data, contentType, uri) {
let channel = services.StreamChannel(uri);
- channel.contentStream = services.StringStream(data);
+ channel.contentStream = services.CharsetConv("UTF-8").convertToInputStream(data);
if (contentType)
channel.contentType = contentType;
channel.contentCharset = "UTF-8";
if (doctype) {
this.writes.push(doctype + "[\n");
try {
- this.writes.push(services.io.newChannel(url, null, null).open())
+ this.writes.push(services.io.newChannel(url, null, null).open());
}
catch (e) {}
if (!open)
this.writes.push("\n]");
- this.writes.push(post)
+ this.writes.push(post);
}
this.writes.push(channelStream);