<i id='s4IVn'><tr id='s4IVn'><dt id='s4IVn'><q id='s4IVn'><span id='s4IVn'><b id='s4IVn'><form id='s4IVn'><ins id='s4IVn'></ins><ul id='s4IVn'></ul><sub id='s4IVn'></sub></form><legend id='s4IVn'></legend><bdo id='s4IVn'><pre id='s4IVn'><center id='s4IVn'></center></pre></bdo></b><th id='s4IVn'></th></span></q></dt></tr></i><div id='s4IVn'><tfoot id='s4IVn'></tfoot><dl id='s4IVn'><fieldset id='s4IVn'></fieldset></dl></div>
    • <bdo id='s4IVn'></bdo><ul id='s4IVn'></ul>
  • <small id='s4IVn'></small><noframes id='s4IVn'>

      <tfoot id='s4IVn'></tfoot>
        <legend id='s4IVn'><style id='s4IVn'><dir id='s4IVn'><q id='s4IVn'></q></dir></style></legend>

        将阿拉伯文本转换为 HTML 代码字符

        时间:2023-06-14

          <legend id='lYN4C'><style id='lYN4C'><dir id='lYN4C'><q id='lYN4C'></q></dir></style></legend>

          <small id='lYN4C'></small><noframes id='lYN4C'>

            <tfoot id='lYN4C'></tfoot>
            <i id='lYN4C'><tr id='lYN4C'><dt id='lYN4C'><q id='lYN4C'><span id='lYN4C'><b id='lYN4C'><form id='lYN4C'><ins id='lYN4C'></ins><ul id='lYN4C'></ul><sub id='lYN4C'></sub></form><legend id='lYN4C'></legend><bdo id='lYN4C'><pre id='lYN4C'><center id='lYN4C'></center></pre></bdo></b><th id='lYN4C'></th></span></q></dt></tr></i><div id='lYN4C'><tfoot id='lYN4C'></tfoot><dl id='lYN4C'><fieldset id='lYN4C'></fieldset></dl></div>
                  <bdo id='lYN4C'></bdo><ul id='lYN4C'></ul>
                    <tbody id='lYN4C'></tbody>
                • 本文介绍了将阿拉伯文本转换为 HTML 代码字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试发送一封包含阿拉伯文本的电子邮件,我的问题是当我将阿拉伯文本添加到电子邮件中时,它会将其更改为随机字母(与电子邮件的字符编码有关 - 我可以't改变).

                  I'm trying to send an email containing Arabic text, my problem is that when I add the Arabic text to the email, it changes it to random letters (to do with the character encoding of the email - which I can't change).

                  是否有内置函数或自定义函数可用于将阿拉伯语转换为 HTML 代码 (),以便随后出现在我的 HTML 电子邮件中?

                  Is there a built in function or a custom function I can use to convert the Arabic to HTML Codes (ا) so it will then appear in my HTML email?

                  推荐答案

                  保留 HTML 转义符(例如 &#1505;),并通过设置 ContentTypetext/html

                  Leave the HTML escapes (ex &#1505;) in, and turn the e-mail to HTML by setting ContentType to text/html

                  'Create mailer
                  mailer.ContentType = "text/html"
                  'User mailer
                  

                  要将 unicode 转换为 HTML 转义,您可以使用内置函数 HTMLEncode.

                  To convert the unicode to HTML escapes you can use the built in function HTMLEncode.

                  mailer.BodyText =  Server.HTMLEncode(body)
                  

                  注意:您的查看器需要安装适当的字形集.

                  这篇关于将阿拉伯文本转换为 HTML 代码字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Javascript 解析器生成器 下一篇:在经典 ASP 页面中编写 JSON,以及对 Http 响应的一般(错误)理解

                  相关文章

                  1. <i id='ptUoi'><tr id='ptUoi'><dt id='ptUoi'><q id='ptUoi'><span id='ptUoi'><b id='ptUoi'><form id='ptUoi'><ins id='ptUoi'></ins><ul id='ptUoi'></ul><sub id='ptUoi'></sub></form><legend id='ptUoi'></legend><bdo id='ptUoi'><pre id='ptUoi'><center id='ptUoi'></center></pre></bdo></b><th id='ptUoi'></th></span></q></dt></tr></i><div id='ptUoi'><tfoot id='ptUoi'></tfoot><dl id='ptUoi'><fieldset id='ptUoi'></fieldset></dl></div>

                    <tfoot id='ptUoi'></tfoot>

                  2. <small id='ptUoi'></small><noframes id='ptUoi'>

                      <bdo id='ptUoi'></bdo><ul id='ptUoi'></ul>

                    <legend id='ptUoi'><style id='ptUoi'><dir id='ptUoi'><q id='ptUoi'></q></dir></style></legend>