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

ASF GitHub Bot commented on FLINK-10924:
----------------------------------------

zentol commented on issue #7143: [FLINK-10924] [javadoc] 
StreamExecutionEnvironment method javadocs in…
URL: https://github.com/apache/flink/pull/7143#issuecomment-440668272
 
 
   You had to look at the underlying implementation to find that out. The 
socket sources use an `InputStreamReader` that **always** uses the platforms' 
character set. The same issue applies to the `FileReadFunction` that is used by 
`StreamExecutionEnvironment#readFileStream`, which thus also doesn't default to 
UTF-8.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> StreamExecutionEnvironment method javadocs incorrect in regards to used 
> charset
> -------------------------------------------------------------------------------
>
>                 Key: FLINK-10924
>                 URL: https://issues.apache.org/jira/browse/FLINK-10924
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation, Streaming
>    Affects Versions: 1.3.3, 1.4.2, 1.5.5, 1.6.2, 1.7.0
>            Reporter: Chesnay Schepler
>            Assignee: TisonKun
>            Priority: Major
>              Labels: pull-request-available
>
> Various methods of the {{StreamExecutionEnvironment}} (like 
> [readTextFile|https://github.com/apache/flink/blob/master/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java#L939])
>  are documented to be using the system's default charset if none is specified.
> This is incorrect as they default to UTF-8 instead. The javadocs should be 
> updated to reflect this.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to