CKEditor 使用 ASP.NET 发送电子邮件 [vb] - 特殊字符问题
我有一个标准的 HTML 页面,上面有一个 CKEditor,包裹在一个表单中。 表单提交(POSTS)到Send_Emails.aspx
Send_Emails.aspx 将FCKEditor 的内容读取到变量中
Dim html As String = Request.Form("ck_content")
然后发送一封电子邮件。
问题
字符,例如:
 -> this seems to show as a special character for blank spaces/carriage returns
’ -> this seems to show as apostrophe's
您能推荐一些方法来清理我的帖子数据中的这些非标准字符吗?
谢谢
I have a standard HTML page with an CKEditor on it wrapped in a form.
The form submits (POSTS) to Send_Emails.aspx
Send_Emails.aspx reads the content of the FCKEditor into a variable
Dim html As String = Request.Form("ck_content")
Then it sends an email.
Problem
Characters such as:
 -> this seems to show as a special character for blank spaces/carriage returns
’ -> this seems to show as apostrophe's
Can you reccomend some methods to cleanze my post data of these non-standard characters?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想出了如何使用此函数删除不需要的字符:
I figured out how to strip unwanted characters by using this function: