Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2901#discussion_r90943695
  
    --- Diff: 
flink-core/src/main/java/org/apache/flink/api/common/io/DelimitedInputFormat.java
 ---
    @@ -182,8 +186,37 @@ protected DelimitedInputFormat(Path filePath, 
Configuration configuration) {
                }
                loadConfigParameters(configuration);
        }
    -   
    -   
    +
    +   /**
    +    * Get the character set used for the row delimiter, field delimiter,
    +    * comment string, and {@link FieldParser}.
    +    *
    +    * @return the charset
    +    */
    +   @PublicEvolving
    +   public Charset getCharset() {
    +           if (this.charset == null) {
    +                   this.charset = Charset.forName(charsetName);
    +           }
    +           return this.charset;
    +   }
    +
    +   /**
    +    * Set the name of the character set used for the row delimiter, field
    +    * delimiter, comment string, and {@link FieldParser}.
    +    *
    +    * The delimeters and comment string are interpreted when set. Each
    --- End diff --
    
    Can we change the encoding of the current delimiter using the old charset 
and the new charset?
    That would also allow to set a new charset without the need to set `\n` 
again to have a newline delimiter.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to