<?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 Re: Encode error when reading script with must_include in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Encode-error-when-reading-script-with-must-include/m-p/1876448#M1216690</link>
    <description>&lt;P&gt;For future reference, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/599"&gt;@vadimtsushko&lt;/a&gt; 's answer helped me&lt;BR /&gt;He was having the same problem, and found that he needed to convert the file into UTF-8 BOM format.&lt;/P&gt;
&lt;P&gt;I did the same here and it worked&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-can-I-use-include-files-saved-in-UTF8/m-p/428584" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/How-can-I-use-include-files-saved-in-UTF8/m-p/428584&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jan 2022 14:54:23 GMT</pubDate>
    <dc:creator>kkmoraes</dc:creator>
    <dc:date>2022-01-02T14:54:23Z</dc:date>
    <item>
      <title>Encode error when reading script with must_include</title>
      <link>https://community.qlik.com/t5/QlikView/Encode-error-when-reading-script-with-must-include/m-p/1876414#M1216689</link>
      <description>&lt;P&gt;Hello everyone, I'm having problems when trying to read some files using must_include, &lt;BR /&gt;I would like your help to solve.&lt;/P&gt;
&lt;P&gt;I have some generic scripts that I'm reading like this:&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="javascript"&gt;NaturezaDespesa:
Mapping
LOAD
    Natureza_Despesa_Cód,
    Item_Despesa_Nome
FROM
$(vLoadDadosVitor)CADASTROS_FNTDET_NATDESP_NATREC\Item_Despesa.qvd
(qvd);
   
 Elemento:
Mapping
LOAD
    Elemento_Despesa_Cód,
    Elemento_Despesa_Nome
FROM
$(vLoadDadosVitor)CADASTROS_FNTDET_NATDESP_NATREC\Elemento_Despesa.qvd
(qvd);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this script is in a separate .qvs, I'm reading the data as follows:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;LET v04_00_carga_bd_fatos_bases_gct = '...carga_bd_fatos_bases_gct.qvs';
$(must_include='$(v04_00_carga_bd_fatos_bases_gct)');&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I'm having a problem, which I believe is related to the encode at the time of reading,&lt;BR /&gt;Qlik is having problems reading accented characters and it is returning an error message that the field does not exist, &lt;BR /&gt;because it is breaking with the character set&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ex:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;C&lt;FONT color="#FF0000"&gt;ó&lt;/FONT&gt;d&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A&lt;FONT color="#FF0000"&gt;çã&lt;/FONT&gt;o&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If I read the script directly in qvw without being via include, it works normally, &lt;BR /&gt;does anyone have any solution?&lt;/P&gt;
&lt;P&gt;I'm attaching an image with the error to make it easier to understand&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 02 Jan 2022 03:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Encode-error-when-reading-script-with-must-include/m-p/1876414#M1216689</guid>
      <dc:creator>kkmoraes</dc:creator>
      <dc:date>2022-01-02T03:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Encode error when reading script with must_include</title>
      <link>https://community.qlik.com/t5/QlikView/Encode-error-when-reading-script-with-must-include/m-p/1876448#M1216690</link>
      <description>&lt;P&gt;For future reference, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/599"&gt;@vadimtsushko&lt;/a&gt; 's answer helped me&lt;BR /&gt;He was having the same problem, and found that he needed to convert the file into UTF-8 BOM format.&lt;/P&gt;
&lt;P&gt;I did the same here and it worked&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/How-can-I-use-include-files-saved-in-UTF8/m-p/428584" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/How-can-I-use-include-files-saved-in-UTF8/m-p/428584&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 14:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Encode-error-when-reading-script-with-must-include/m-p/1876448#M1216690</guid>
      <dc:creator>kkmoraes</dc:creator>
      <dc:date>2022-01-02T14:54:23Z</dc:date>
    </item>
  </channel>
</rss>

