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

        <small id='063y4'></small><noframes id='063y4'>

        从数据库中检索数据时如何转义特殊字符?

        时间:2023-06-07
                <tbody id='OxvJR'></tbody>

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

              • <bdo id='OxvJR'></bdo><ul id='OxvJR'></ul>

                  本文介绍了从数据库中检索数据时如何转义特殊字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我将根据 SQL Server 返回的数据生成 XML 文件,但是有一些特殊字符,例如 &#x1F;&#x1C;(可能还有其他类似的字符),这将使 XML 失败.

                  I am going to generate XML file based on the data returned from SQL Server, but there are some special characters like &#x1F; and &#x1C; (there may be other characters like these), which will fail the XML.

                  有什么办法可以摆脱它们吗?

                  Is there any way to escape them?

                  谢谢!

                  推荐答案

                  嗯,我只是使用模式匹配的东西来手动替换那些特殊字符.匹配 '&#.+?;'

                  Well, I just use the pattern matching stuff to replace those special characters manually. Match for '&#.+?;'

                  这篇关于从数据库中检索数据时如何转义特殊字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:SQL Server 更新值 XML 节点 下一篇:如何处理 FOR XML PATH/AUTO - SQL Server 中的空白值?

                  相关文章

                  最新文章

                    <bdo id='1zJg4'></bdo><ul id='1zJg4'></ul>
                  <tfoot id='1zJg4'></tfoot>

                  1. <legend id='1zJg4'><style id='1zJg4'><dir id='1zJg4'><q id='1zJg4'></q></dir></style></legend>

                    <small id='1zJg4'></small><noframes id='1zJg4'>

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