<?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 [resolved] Encoding Problem with Special Characters in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210760#M9054</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2 files: one xml and one json. Both are UTF-8, and I store them both in a thash. After this step, i compare them. When I open the non-matched file (I have set it to UTF-8 as well) i see that all the special characters are displayed as ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is welcome&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 18:53:20 GMT</pubDate>
    <dc:creator>spr654</dc:creator>
    <dc:date>2019-03-01T18:53:20Z</dc:date>
    <item>
      <title>[resolved] Encoding Problem with Special Characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210760#M9054</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2 files: one xml and one json. Both are UTF-8, and I store them both in a thash. After this step, i compare them. When I open the non-matched file (I have set it to UTF-8 as well) i see that all the special characters are displayed as ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is welcome&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 18:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210760#M9054</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-03-01T18:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Encoding Problem with Special Characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210761#M9055</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;Could you please add tLogrow at strategic areas of your program. I would try to see the results after reading from the source files, after reading from Hash, before matching and after matching.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;This will give you an idea of the exact area where UTF is not getting converted properly. Could you please do it and share the results? Screenshots of your job flow along with sample data will be appreciated as it will give us more idea about your job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2019 14:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210761#M9055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-02T14:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Encoding Problem with Special Characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210762#M9056</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have done several tests. I had a problem with Unix - DOS conversion. Now I have only one record in error, but I cannot understand the reason. I have tried almost everything. If the record is in the initial file, The tMap component finds it but the tExtractJSONfield doesn't. If I copy and paste it in a separate file, it is found by both components. If I copy a segment of the file, containing the record in error, it is found by both components. If you have any clue of what can be, any help is welcome. What else can I check?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 09:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210762#M9056</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-03-06T09:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Encoding Problem with Special Characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210763#M9057</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please share some screen shots so that we will get better understanding of the flow?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 09:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210763#M9057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T09:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Encoding Problem with Special Characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210764#M9058</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your support. I have captured the output that goes into the tExtractJSONField in a tFileOutputDelimited. In the cases the record in error is missing, I can see it in the tFileOutputDelimited_1 component, what means that is passing the tMap and enters the tExtractJSONField component, but there disappears (only if I use it in the original file).&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tExtractJSONFieldIssue.png" style="width: 606px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2f0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136698i4971AB0BCD6AE4EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2f0.png" alt="0683p000009M2f0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 09:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210764#M9058</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-03-06T09:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Encoding Problem with Special Characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210765#M9059</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Now I got the issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Could you please share the sample records from the&amp;nbsp;&lt;SPAN&gt;tFileOutputDelimited_1 component and also share the screenshot of your&amp;nbsp;tExtractJSONField for customers. Please also include the input and output schemas of this component. I suspect that the parsing of JSON is not happening in right manner.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If you could show the expected value of output, that will be really great and we can try to fill the missing gaps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 10:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210765#M9059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T10:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Encoding Problem with Special Characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210766#M9060</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM" target="_self"&gt;@nthampi&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;My file contains more than 2000000 records. Only when I run this file, I loose that specific record in the way, and only that record. When I take a subset of records, that record works ok, so sample records won't help in this case and the data is confidential. I have attached an example of record, nevertheless.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;Here are the mapping and the schema:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mappingtExtractFieldsJSON.PNG" style="width: 929px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2fJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157161iF259030BAF575EB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2fJ.png" alt="0683p000009M2fJ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tExtractJSONfieldSchema.PNG" style="width: 986px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2fO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144424i9A5BD73457EF09A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2fO.png" alt="0683p000009M2fO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lump"&gt;Example.csv&lt;/A&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210766#M9060</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-03-06T14:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Encoding Problem with Special Characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210767#M9061</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;Could you please try with JSON path instead of Xpath?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please also note that you will have to parse through multiple lists. So try to parse the address related info and once you get those details, go for the rest.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 15:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210767#M9061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T15:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Encoding Problem with Special Characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210768#M9062</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I had to change to xpath because I couln’t Do my mapping with Jason path’ can you show how it is done with Jason path?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Wed, 06 Mar 2019 20:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210768#M9062</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-03-06T20:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Encoding Problem with Special Characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210769#M9063</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPHZAA4"&gt;@spr654&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It was an interesting problem. Your input JSON has got two parts. The first part is address which is an array.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;"addresses":[{"country":"LT","streetAndNumber":"My Street N 2-10","postCode":"00028","validFrom":182200000000,"type":"ATYPE","city":"ACITY"}]&lt;/PRE&gt; 
&lt;P&gt;The second part is one level above and is at same level as address&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;"referenceNumber":"AREFNUM","referenceType":"AREFTYPE","fullName":"My.Full.Name","createdByTransactionId":123456,"_class":"my.class","validFrom":182200000000,"validTo":282200000000&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So if you need to read address part, you will need to parse the JSON at different level compared to your name part.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below job is reading the data and parsing them correctly. I have not added all the columns but I have added first and last part of both section to make sure that columns are parsing correctly.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2gv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131441i8A0C2C9EE43F1D10/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2gv.png" alt="0683p000009M2gv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2h0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147568i0707B9FA42262EFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2h0.png" alt="0683p000009M2h0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I believe you are happy with output also. Now lets see the details.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The first JSONExtract is parsing the outer layer and push the entire address info as a single string.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2fe.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141149iEF858AFA9E634493/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2fe.png" alt="0683p000009M2fe.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the second part, I am parsing the address column and I am leaving the other data without any processing. So the data will automatically pass for these columns (like fullName, validTo etc.)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2U7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134165i9D1F5A92953D3DAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2U7.png" alt="0683p000009M2U7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now, we have parsed the data from both structures and you have the output data as shown in previous tLogrow.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope I have answered your query &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 13:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210769#M9063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T13:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Encoding Problem with Special Characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210770#M9064</link>
      <description>&lt;P&gt;thank you, it is a very graphic example.&lt;/P&gt;&lt;P&gt;With this example, I am able to understand how to treat in a chain several loops. It will help me lots in other parts of the project, where I have xml files containing several loops.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 09:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Encoding-Problem-with-Special-Characters/m-p/2210770#M9064</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-03-12T09:20:24Z</dc:date>
    </item>
  </channel>
</rss>

