damccorm opened a new issue, #19924:
URL: https://github.com/apache/beam/issues/19924
I am running apache beam job to parse japanese html pages. While running the
job, I see in stackdriver log it is showing japanese character properly. But
same data written to GCS bucket has encoding issue and it is getting corrupted.
```
//code
Pipeline pipeline = Pipeline.create(options);
CoderRegistry cr = pipeline.getCoderRegistry();
cr.registerCoderForClass(String.class,
StringUtf8Coder.of());
cr.registerCoderForClass(Integer.class, BigEndianIntegerCoder.of());
batchTuple
= pipeline
.apply("Read from input files",
TextIO.read().from(options.getloadingBucketURL()).withCompression(Compression.GZIP)).setCoder(StringUtf8Coder.of())
.apply("Process
input files",ParDo.of(new
ExtractDataFromHtmlPage(extractionConfig,beamConfig.getLoadingBucketURL())).withOutputTags(successRecord,
TupleTagList.of(errorRecord).and(deadLetterRecords)));
```
Imported from Jira
[BEAM-8423](https://issues.apache.org/jira/browse/BEAM-8423). Original Jira may
contain additional context.
Reported by: jyotiaditya.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]