<?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 Transaction Details API trashes UTF-8 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-trashes-UTF-8/m-p/14400#M8467</link>
    <description>&lt;P&gt;&lt;FONT size="3"&gt;Here's an actual example:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Correct:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;José&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;Byte stream as downloaded from getTransactionDetails:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: large; line-height: normal;"&gt;4a 6f 73 c3 83 c2 a9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&amp;nbsp; J &amp;nbsp; o &amp;nbsp; &amp;nbsp; s &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Ã &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ©&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;Correct byte stream:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;4A 6F 73 C3 A9&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&amp;nbsp; J &amp;nbsp; o &amp;nbsp; &amp;nbsp;s &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;é﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;The getTransactionDetails﻿&amp;nbsp;API xml header claims that the encoding is UTF-8,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;the API is actually encoding the unicode twice.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;One frequent cause of this is to have a MySQL database with tables defined as the&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;default latin1 charset, but the data is actually stored in the table as UTF8. MySQL doesn't&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;care until you SELECT the data as UTF-8, at which point it encodes the already UTF8&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;as UTF8 again.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Some versions of the mysqldump tool can also store the dump incorrectly, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;even if the tables are properly declared as UTF8 charset. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;When restored from such a dump, the table will have doubly-UTF8-encoded text.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Workaraound:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Decoding from downloaded "UTF-8﻿" byte stream to unicode, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;then decoding from the unicode (which is actually UTF-8) to unicode fixes the problem.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2011 14:35:35 GMT</pubDate>
    <dc:creator>krc</dc:creator>
    <dc:date>2011-07-12T14:35:35Z</dc:date>
    <item>
      <title>Transaction Details API trashes UTF-8</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-trashes-UTF-8/m-p/14400#M8467</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;Here's an actual example:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Correct:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;José&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;Byte stream as downloaded from getTransactionDetails:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: large; line-height: normal;"&gt;4a 6f 73 c3 83 c2 a9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&amp;nbsp; J &amp;nbsp; o &amp;nbsp; &amp;nbsp; s &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Ã &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ©&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;Correct byte stream:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;4A 6F 73 C3 A9&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&amp;nbsp; J &amp;nbsp; o &amp;nbsp; &amp;nbsp;s &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;é﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;The getTransactionDetails﻿&amp;nbsp;API xml header claims that the encoding is UTF-8,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;the API is actually encoding the unicode twice.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;One frequent cause of this is to have a MySQL database with tables defined as the&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;default latin1 charset, but the data is actually stored in the table as UTF8. MySQL doesn't&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;care until you SELECT the data as UTF-8, at which point it encodes the already UTF8&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;as UTF8 again.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Some versions of the mysqldump tool can also store the dump incorrectly, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;even if the tables are properly declared as UTF8 charset. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;When restored from such a dump, the table will have doubly-UTF8-encoded text.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Workaraound:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Decoding from downloaded "UTF-8﻿" byte stream to unicode, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;then decoding from the unicode (which is actually UTF-8) to unicode fixes the problem.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2011 14:35:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-trashes-UTF-8/m-p/14400#M8467</guid>
      <dc:creator>krc</dc:creator>
      <dc:date>2011-07-12T14:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Details API trashes UTF-8</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-trashes-UTF-8/m-p/14882#M8534</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey sorry for the delay, but I've got the development teams looking into this one. We'll post more once we hear back from them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;Developer Community Manager&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2011 17:39:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-trashes-UTF-8/m-p/14882#M8534</guid>
      <dc:creator>Michelle</dc:creator>
      <dc:date>2011-07-15T17:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Details API trashes UTF-8</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-trashes-UTF-8/m-p/16376#M9247</link>
      <description>&lt;P&gt;I was able to confirmt hat this isn't exactly what is happening, so unfortunately it isn't just a simple adjustment to stop the behavior.&amp;nbsp; You are correct that our database stores the values in a western character set.&amp;nbsp; We are currently configured to expect that all text is sent to us in a western encoding.&amp;nbsp; You should be able to send characters such as &lt;STRONG&gt;é&lt;/STRONG&gt;﻿ using extended western encoding. It is likely that we will move to support UTF-8 in the future, but it isn't something that we can provide a timeline on.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2011 23:40:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-trashes-UTF-8/m-p/16376#M9247</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2011-08-19T23:40:51Z</dc:date>
    </item>
  </channel>
</rss>

