<?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 Problem loading data using peek when the column value has single-quotes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-loading-data-using-peek-when-the-column-value-has-single/m-p/208219#M63659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the peek function to get values from a XML file. It works perfectly 99% of the cases, but when the value from the XML has single-quotes, the peek function returns everything before the single-quote and ignore the rest.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;In the Excel the node "AcctName" has a record with the value: John's&lt;/P&gt;&lt;P&gt;In that case, the peek function returns me John&lt;/P&gt;&lt;P&gt;If I change the single quotes for double quotes like John"s, it returns correctly: John"s&lt;/P&gt;&lt;P&gt;The problem is I do not want double quotes, I want single quotes.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2009 01:34:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-07T01:34:48Z</dc:date>
    <item>
      <title>Problem loading data using peek when the column value has single-quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-loading-data-using-peek-when-the-column-value-has-single/m-p/208219#M63659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the peek function to get values from a XML file. It works perfectly 99% of the cases, but when the value from the XML has single-quotes, the peek function returns everything before the single-quote and ignore the rest.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;In the Excel the node "AcctName" has a record with the value: John's&lt;/P&gt;&lt;P&gt;In that case, the peek function returns me John&lt;/P&gt;&lt;P&gt;If I change the single quotes for double quotes like John"s, it returns correctly: John"s&lt;/P&gt;&lt;P&gt;The problem is I do not want double quotes, I want single quotes.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 01:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-loading-data-using-peek-when-the-column-value-has-single/m-p/208219#M63659</guid>
      <dc:creator />
      <dc:date>2009-10-07T01:34:48Z</dc:date>
    </item>
    <item>
      <title>Problem loading data using peek when the column value has single-quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-loading-data-using-peek-when-the-column-value-has-single/m-p/208220#M63660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Igor,&lt;/P&gt;&lt;P&gt;when you load your XML file into QlikView, you can load the same field twice and replace the single quote by another symbol (for example, an apostrophe) just for the purpose of using it in peek() function. Once you peek the value, you can replace the character back to a single quote. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;AcctName.&lt;/P&gt;&lt;P&gt;replace(AcctName, CHR(37), '`') as AcctName2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vAccName = replace( peek(AcctName2), '`', chr(37))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(the code is not verified, just an example)&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 02:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-loading-data-using-peek-when-the-column-value-has-single/m-p/208220#M63660</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-10-07T02:50:13Z</dc:date>
    </item>
    <item>
      <title>Problem loading data using peek when the column value has single-quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-loading-data-using-peek-when-the-column-value-has-single/m-p/208221#M63661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;It is working now with a single change: It is Chr(39)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 01:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-loading-data-using-peek-when-the-column-value-has-single/m-p/208221#M63661</guid>
      <dc:creator />
      <dc:date>2009-10-08T01:30:16Z</dc:date>
    </item>
  </channel>
</rss>

