【问题标题】:How to remove special characters in XML through ESQL如何通过 ESQL 删除 XML 中的特殊字符
【发布时间】:2017-07-25 12:17:59
【问题描述】:

我遇到输入 XML 中出现特殊字符的问题。 我们如何通过代理工具包中的 ESQL 代码删除 XML 字段中任何地方可能出现的坏字符。 在下面的 XML 中,描述字段的字符不正确 - :

<notificationsRequest>
  <BillingCity>Troutdale</BillingCity>
  <BillingCountry>United States</BillingCountry>
  <BillingPostalCode>97060</BillingPostalCode>
  <BillingState>Oregon</BillingState>
  <BillingStreet>450 NW 257th Way, Suite 400</BillingStreet>
  <CreatedById>005w0000003QlXtAAK</CreatedById>
  <Type>Prospect</Type>
  <Tyco_Operating_Co__c>Tyco IS - Commercial</Tyco_Operating_Co__c>
  <Doing_Business_As_DBA__c>Columbia Gorge Outlets</Doing_Business_As_DBA__c>
  <Description>As of January 2016—the property title should read Austell    Columbia Gorge Equities, LLC-dba Columbia Gorge Outlets---so the title should be Austell Columbia Gorge Equities, LLC.</Description>
</notificationsRequest>

【问题讨论】:

  • 有这样的字符说明你的字符集有问题。首先,您应该检查您的传入消息是否具有正确的(与内容匹配的)CCSID 集。

标签: ibm-mq ibm-integration-bus extended-sql


【解决方案1】:

您的文件似乎带有错误的编码或在从一种编码转换为另一种编码时已损坏。如果您是 MS Windows 用户,您可以使用 Nodepad++ 打开它并尝试将其编码转换为 UTF8 或任何可能的编码来检查问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-20
    • 1970-01-01
    相关资源
    最近更新 更多