<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Complete net.authorize.data.Order Description Character Encoding Specifications? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Complete-net-authorize-data-Order-Description-Character-Encoding/m-p/64972#M38720</link>
    <description>&lt;P&gt;I know of the limit to 255 characters from the web documentation, but in the past and again recently this SDK&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-java" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-java&lt;/A&gt; has been throwing exceptions when I Merchant.postTransaction() Orders with Descriptions that contain ampersands (&amp;amp;) or apostrophes (').&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;The quick brute force solution is usually to just URL Encode this specific description content to get it through the API, but what are the true specs for this data?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apache Utilities like escapeXML() or escapeJavascript() don't seem to match what this API layer level is expecting.&amp;nbsp; The in the past I've forked the SDK to change when/where/how it encodes the final POST request, but that isn't a long term solution when people pull in the offical SDK from a repository and trigger this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Is there a more technical low&lt;/EM&gt; level&lt;EM&gt; equivalent to&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;that is a closer match to the Java SDK?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Thanks&lt;/P&gt;</description>
    <pubDate>Sun, 04 Nov 2018 20:32:21 GMT</pubDate>
    <dc:creator>richardrega</dc:creator>
    <dc:date>2018-11-04T20:32:21Z</dc:date>
    <item>
      <title>Complete net.authorize.data.Order Description Character Encoding Specifications?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Complete-net-authorize-data-Order-Description-Character-Encoding/m-p/64972#M38720</link>
      <description>&lt;P&gt;I know of the limit to 255 characters from the web documentation, but in the past and again recently this SDK&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-java" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-java&lt;/A&gt; has been throwing exceptions when I Merchant.postTransaction() Orders with Descriptions that contain ampersands (&amp;amp;) or apostrophes (').&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;The quick brute force solution is usually to just URL Encode this specific description content to get it through the API, but what are the true specs for this data?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apache Utilities like escapeXML() or escapeJavascript() don't seem to match what this API layer level is expecting.&amp;nbsp; The in the past I've forked the SDK to change when/where/how it encodes the final POST request, but that isn't a long term solution when people pull in the offical SDK from a repository and trigger this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Is there a more technical low&lt;/EM&gt; level&lt;EM&gt; equivalent to&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;that is a closer match to the Java SDK?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 04 Nov 2018 20:32:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Complete-net-authorize-data-Order-Description-Character-Encoding/m-p/64972#M38720</guid>
      <dc:creator>richardrega</dc:creator>
      <dc:date>2018-11-04T20:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Complete net.authorize.data.Order Description Character Encoding Specifications?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Complete-net-authorize-data-Order-Description-Character-Encoding/m-p/64975#M38722</link>
      <description>&lt;P&gt;I have this problem too,&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 11:15:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Complete-net-authorize-data-Order-Description-Character-Encoding/m-p/64975#M38722</guid>
      <dc:creator>sidoelthemovie</dc:creator>
      <dc:date>2018-11-05T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Complete net.authorize.data.Order Description Character Encoding Specifications?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Complete-net-authorize-data-Order-Description-Character-Encoding/m-p/64977#M38724</link>
      <description>&lt;P&gt;Am too facing the same issue from past few days. Hope you guys can sortit out. Thanks and Regards, Alex Parkar.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 17:58:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Complete-net-authorize-data-Order-Description-Character-Encoding/m-p/64977#M38724</guid>
      <dc:creator>helloamalexpark</dc:creator>
      <dc:date>2018-11-05T17:58:44Z</dc:date>
    </item>
  </channel>
</rss>

