jQuery InsertAtCaret有时会将奇怪的字符复制到textarea中

时间:2012-01-21 23:19:42

标签: jquery encoding asp-classic

当我从另一个DIV中选择和插入文本时,我会收到一些奇怪的字符,比如•,复制到我的文本区域。

不确定他们来自哪里。我该如何解决?

有人建议它可能是编码;我在Classic ASP中使用以下标题执行此操作:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

1 个答案:

答案 0 :(得分:0)

尝试更改字符编码以utise utf-8字符集

<meta http-equiv="content-type" content="text/html;charset=utf-8">