<?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 to generate csv file with section ('§') character in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Problem-to-generate-csv-file-with-section-character/m-p/2222028#M15798</link>
    <description>&lt;P&gt;Hi, my job is meant to generate CSV files with headers containing the section/paragraph character. When I run my job directly from the Talend studio it works but when I generate a build and then launch the batch file, section characters in generated CSV files appears in hexa like "xA7".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the code of my tJava that generate the files:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;String filename = "myFile";&lt;BR /&gt;String content="";&lt;BR /&gt;byte[] bytes = content.getBytes();&lt;BR /&gt;&lt;BR /&gt;try (PrintStream w = new PrintStream(new FileOutputStream(filename))) {&lt;BR /&gt;w.write('\ufeef'); // emits 0xef&lt;BR /&gt;w.write('\ufebb'); // emits 0xbb&lt;BR /&gt;w.write('\ufebf'); // emits 0xbf&lt;BR /&gt;w.print('\u00A7'+"OF_Num_OF;§OF_Status\r\n");&lt;BR /&gt;w.print(row1.CODE+";Released");&lt;BR /&gt;} catch (IOException e) {&lt;BR /&gt;e.printStackTrace();&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:07:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T02:07:53Z</dc:date>
    <item>
      <title>Problem to generate csv file with section ('§') character</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-to-generate-csv-file-with-section-character/m-p/2222028#M15798</link>
      <description>&lt;P&gt;Hi, my job is meant to generate CSV files with headers containing the section/paragraph character. When I run my job directly from the Talend studio it works but when I generate a build and then launch the batch file, section characters in generated CSV files appears in hexa like "xA7".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the code of my tJava that generate the files:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;String filename = "myFile";&lt;BR /&gt;String content="";&lt;BR /&gt;byte[] bytes = content.getBytes();&lt;BR /&gt;&lt;BR /&gt;try (PrintStream w = new PrintStream(new FileOutputStream(filename))) {&lt;BR /&gt;w.write('\ufeef'); // emits 0xef&lt;BR /&gt;w.write('\ufebb'); // emits 0xbb&lt;BR /&gt;w.write('\ufebf'); // emits 0xbf&lt;BR /&gt;w.print('\u00A7'+"OF_Num_OF;§OF_Status\r\n");&lt;BR /&gt;w.print(row1.CODE+";Released");&lt;BR /&gt;} catch (IOException e) {&lt;BR /&gt;e.printStackTrace();&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-to-generate-csv-file-with-section-character/m-p/2222028#M15798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to generate csv file with section ('§') character</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-to-generate-csv-file-with-section-character/m-p/2222029#M15799</link>
      <description>&lt;P&gt;I finally succeeded to solve my problem. For anyone interested, in Talend studio you have to go to: "File -&amp;gt; edit project properties -&amp;gt; build -&amp;gt; shell -&amp;gt; bat" and then you have to add this line "&lt;SPAN&gt;-Dfile.encoding=utf-8&lt;/SPAN&gt;" after "java" like shown in the attached file. This option will start the CMD with UTF-8 encoding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Mamo"&gt;2020-06-18 12_53_24-Paramètres du projet.png&lt;/A&gt;</description>
      <pubDate>Thu, 18 Jun 2020 11:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-to-generate-csv-file-with-section-character/m-p/2222029#M15799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-18T11:56:11Z</dc:date>
    </item>
  </channel>
</rss>

