<?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 $ Expansion and Japanese Characters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expansion-and-Japanese-Characters/m-p/234513#M85923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I've got a spreadsheet with some fields containing japanese. I'd like to convert these to english.&lt;/P&gt;&lt;P&gt;The display of the Japanese characters in the QV application is working fine, however when I try to use the field data in a $ expansion, the characters are converted to ASCII ???? characters, not the original japanese characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my example call to the google translate api:&lt;/P&gt;&lt;P&gt;//get a google api key @ http://code.google.com/apis/console&lt;/P&gt;&lt;P&gt;LET vGoogleAppsKey = 'pasteGoogleKeyHere';&lt;BR /&gt;&lt;BR /&gt;LET vJapaneseText = '? ? ? ?';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;'$(vJapaneseText)' as JapaneseText&lt;BR /&gt;,@1:n as EnglishTranslated&lt;BR /&gt;FROM&lt;BR /&gt;[https://www.googleapis.com/language/translate/v2?key=$(vGoogleAppsKey)&amp;amp;q=$(vJapaneseText)&amp;amp;source=ja&amp;amp;target=en]&lt;BR /&gt;(fix)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the log output:&lt;BR /&gt;12/28/2010 1:46:03 PM: 0019 LOAD&lt;BR /&gt;12/28/2010 1:46:03 PM: 0020 '? ? ? ?' as JapaneseText&lt;BR /&gt;12/28/2010 1:46:03 PM: 0021 ,@1:n as EnglishTranslated&lt;BR /&gt;12/28/2010 1:46:03 PM: 0022 FROM&lt;BR /&gt;12/28/2010 1:46:03 PM: 0023 [https://www.googleapis.com/language/translate/v2?key=keyGoesHere...&amp;amp;q=? ? ? ?&amp;amp;source=ja&amp;amp;target=en]&lt;BR /&gt;12/28/2010 1:46:03 PM: 0024 (fix)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Dec 2010 22:39:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-28T22:39:08Z</dc:date>
    <item>
      <title>$ Expansion and Japanese Characters</title>
      <link>https://community.qlik.com/t5/QlikView/Expansion-and-Japanese-Characters/m-p/234513#M85923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I've got a spreadsheet with some fields containing japanese. I'd like to convert these to english.&lt;/P&gt;&lt;P&gt;The display of the Japanese characters in the QV application is working fine, however when I try to use the field data in a $ expansion, the characters are converted to ASCII ???? characters, not the original japanese characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my example call to the google translate api:&lt;/P&gt;&lt;P&gt;//get a google api key @ http://code.google.com/apis/console&lt;/P&gt;&lt;P&gt;LET vGoogleAppsKey = 'pasteGoogleKeyHere';&lt;BR /&gt;&lt;BR /&gt;LET vJapaneseText = '? ? ? ?';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;'$(vJapaneseText)' as JapaneseText&lt;BR /&gt;,@1:n as EnglishTranslated&lt;BR /&gt;FROM&lt;BR /&gt;[https://www.googleapis.com/language/translate/v2?key=$(vGoogleAppsKey)&amp;amp;q=$(vJapaneseText)&amp;amp;source=ja&amp;amp;target=en]&lt;BR /&gt;(fix)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the log output:&lt;BR /&gt;12/28/2010 1:46:03 PM: 0019 LOAD&lt;BR /&gt;12/28/2010 1:46:03 PM: 0020 '? ? ? ?' as JapaneseText&lt;BR /&gt;12/28/2010 1:46:03 PM: 0021 ,@1:n as EnglishTranslated&lt;BR /&gt;12/28/2010 1:46:03 PM: 0022 FROM&lt;BR /&gt;12/28/2010 1:46:03 PM: 0023 [https://www.googleapis.com/language/translate/v2?key=keyGoesHere...&amp;amp;q=? ? ? ?&amp;amp;source=ja&amp;amp;target=en]&lt;BR /&gt;12/28/2010 1:46:03 PM: 0024 (fix)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 22:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expansion-and-Japanese-Characters/m-p/234513#M85923</guid>
      <dc:creator />
      <dc:date>2010-12-28T22:39:08Z</dc:date>
    </item>
    <item>
      <title>$ Expansion and Japanese Characters</title>
      <link>https://community.qlik.com/t5/QlikView/Expansion-and-Japanese-Characters/m-p/234514#M85924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out that I needed to use the applycodepage() function to get the japanese characters to show up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like applycodepage( $(vJapaneseText),932) got it to work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 00:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expansion-and-Japanese-Characters/m-p/234514#M85924</guid>
      <dc:creator />
      <dc:date>2010-12-30T00:02:47Z</dc:date>
    </item>
  </channel>
</rss>

