You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Eric Olson (Jira)" <ji...@apache.org> on 2021/02/20 19:03:00 UTC

[jira] [Commented] (NIFI-6051) FetchFile fails on filenames containing characters with orthographic marks

    [ https://issues.apache.org/jira/browse/NIFI-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17287770#comment-17287770 ] 

Eric Olson commented on NIFI-6051:
----------------------------------

I had this same problem under Linux. Setting both -Dfile.encoding=UTF8 and -Dsun.jnu.encoding=UTF8 in the bootstrap.conf file fixed it. The second parameter is a mostly undocumented one and I'm not entirely clear on what it does.

Also, I'm unable to replicate this on Windows using either 1.8 or 1.14 (current main).

> FetchFile fails on filenames containing characters with orthographic marks
> --------------------------------------------------------------------------
>
>                 Key: NIFI-6051
>                 URL: https://issues.apache.org/jira/browse/NIFI-6051
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.8.0
>            Reporter: Andy LoPresto
>            Assignee: Juan Carlos de la Prada de Haro
>            Priority: Major
>              Labels: encoding, file, utf-8
>         Attachments: Sin título.png
>
>
> As reported in the Slack channel:
> {quote}
> Hi all! I'm trying to use FetchFile processor to read some files but it's not possible when directories includes special characters. I tried to solve that issue modifying the character set to UTF8. To do so I add "java.arg.8=-Dfile.encoding=UTF8" argument in the boostrap.conf file but it doesn't work properly.
> {quote}
> The processor (and any other that interacts with the file system) should be fixed to properly handle filenames such as:
> * {{información.txt}}
> * {{líneas.csv}}
> * {{tack_så_mycket.json}}
> * {{słowo.xml}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)