xuzifu666 commented on code in PR #46509: URL: https://github.com/apache/spark/pull/46509#discussion_r1602578323
########## sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/xml/XSDToSchema.scala: ########## @@ -48,7 +49,7 @@ object XSDToSchema extends Logging{ val in = ValidatorUtil.openSchemaFile(xsdPath) val xmlSchemaCollection = new XmlSchemaCollection() xmlSchemaCollection.setBaseUri(xsdPath.toString) - val xmlSchema = xmlSchemaCollection.read(new InputStreamReader(in)) + val xmlSchema = xmlSchemaCollection.read(new InputStreamReader(in, StandardCharsets.UTF_8)) Review Comment: XSDtoSchema would not modify it, than HiveImpl had also changed can refer recent pr: https://github.com/apache/hive/pull/5243 -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org