<?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: Encoding issues with webscript in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109574#M30705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Java always uses Unicode internally, BUT if you read / write from/to files and do not explicitly specify the file encodings as part of that read / write, then it will use the system encoding by default, unless configured via the -D flag you mentioned. Even though my development environment runs on Windows,&amp;nbsp;I have ensured that all files I read / write during development or Alfresco runtime are properly maintained and accessed using UTF-8 even without that -D parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Aug 2019 12:45:16 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2019-08-31T12:45:16Z</dc:date>
    <item>
      <title>Encoding issues with webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109571#M30702</link>
      <description>Hello,I wrote up a repo webscript which uses&amp;nbsp;some Java logic to pass data to the Freemarker template.Everything works great when I use I on the Alfresco Community Edition 6.1.2 on Docker.However, when I try to apply my webscript (using .amp files) to the Alfresco Community Edition 6.1.2 without Dock</description>
      <pubDate>Fri, 23 Aug 2019 09:57:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109571#M30702</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-08-23T09:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding issues with webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109572#M30703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have never seen this kind of behaviour as web scripts backed by Freemarker templates typically stream in the in-memory String result of said web script, and since Java uses Unicode internally, that has always been UTF-8 for me - and I have been using Windows-based systems for development extensively, until recently.&lt;/P&gt;&lt;P&gt;Are you by any chance using temporary file storage as a buffer for the template output, e.g. streaming the result from the locally stored file instead from the in-memory String? That way I could imagine the Windows encoding could creep in somehow...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2019 12:09:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109572#M30703</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-08-27T12:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding issues with webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109573#M30704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange, but Java indeed was the case. I also thought it uses UTF-8 by default but it seems like it was not. I had to add&amp;nbsp; Java parameter&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class=""&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;Dfile&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;encoding&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;UTF&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;8&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 16:20:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109573#M30704</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-08-30T16:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding issues with webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109574#M30705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Java always uses Unicode internally, BUT if you read / write from/to files and do not explicitly specify the file encodings as part of that read / write, then it will use the system encoding by default, unless configured via the -D flag you mentioned. Even though my development environment runs on Windows,&amp;nbsp;I have ensured that all files I read / write during development or Alfresco runtime are properly maintained and accessed using UTF-8 even without that -D parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Aug 2019 12:45:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109574#M30705</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-08-31T12:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding issues with webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109575#M30706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, thank you for the advice. Just like you said, previously I forgot to specify the file encodings while reading a file. Specifying it, also solved the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Aug 2019 14:03:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109575#M30706</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-08-31T14:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Encoding issues with webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109576#M30707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information..!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2019 10:09:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/encoding-issues-with-webscript/m-p/109576#M30707</guid>
      <dc:creator>swapna31</dc:creator>
      <dc:date>2019-09-02T10:09:29Z</dc:date>
    </item>
  </channel>
</rss>

