protected void btnCompress_Click(object sender, EventArgs e) { string toConvert = Server.HtmlEncode(txtInput.Text); string result; result = recoder.Shorten(toConvert); result += "<br/><br/>" + result.Replace(" ", "").Trim().Replace("\n", "<br/>");; txtOutput.Text = result; result = recoder.ShortenToJapanese2(toConvert); result += "<br/><br/>" + result.Replace(" ", "").Trim().Replace("\n", "<br/>");; txtJapanese.Text = result; result = recoder.ShortenToChinese(toConvert); result += "<br/><br/>" + result.Replace(" ", "").Trim().Replace("\n", "<br/>");; txtChinese.Text = result; result = recoder.ShortenToUnicode(toConvert); result += "<br/><br/>" + result.Replace(" ", "").Trim().Replace("\n", "<br/>");; txtUnicode.Text = result; outputSection.Visible = true; }