教程集 www.jiaochengji.com
教程集 >  脚本编程  >  Asp.net  >  正文 Paste html from Clipboard 可解决中文乱码问题。

Paste html from Clipboard 可解决中文乱码问题。

发布时间:2016-12-03   编辑:jiaochengji.com
教程集为您提供Paste html from Clipboard 可解决中文乱码问题。等资源,欢迎您收藏本站,我们将为您提供最新的Paste html from Clipboard 可解决中文乱码问题。资源
Paste html from Clipboard 可解决中文乱码问题。
<pre>
MemoryStream ms = Clipboard.GetData("Html Format") as MemoryStream;
if (ms == null)
{
return;
}

ms.Position = 0;
byte[] vBytes = new byte[ms.Length];
ms.Read(vBytes, 0, (int)ms.Length);

string strFullHtml = Encoding.UTF8.GetString(vBytes); // utf-8
</pre>
 

您可能感兴趣的文章:
Paste html from Clipboard 可解决中文乱码问题。
php网页标题中文乱码如何解决
php读取mysql中文乱码解决方法
php mail函数发送邮件及乱码解决方法
php分割GBK中文乱码的解决方法
mysql中utf-8编码数据库转换成GBK编码的问题
jquery乱码与contentType属性设置问题解决方案
php截取中文字符串乱码如何解决呢
php pdo编码乱码问题的解决方法
H5 的复制操作实例代码

[关闭]
~ ~