mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
Use UTF8 to read Avro schema file
This commit is contained in:
parent
a5b0b3cb2d
commit
d5bdca6f28
@ -380,7 +380,7 @@ public class PulsarActivityUtil {
|
|||||||
if (schemaDefinitionStr.startsWith("file://")) {
|
if (schemaDefinitionStr.startsWith("file://")) {
|
||||||
try {
|
try {
|
||||||
Path filePath = Paths.get(URI.create(schemaDefinitionStr));
|
Path filePath = Paths.get(URI.create(schemaDefinitionStr));
|
||||||
schemaDefinitionStr = Files.readString(filePath, StandardCharsets.US_ASCII);
|
schemaDefinitionStr = Files.readString(filePath, StandardCharsets.UTF_8);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
throw new RuntimeException("Error reading the specified \"Avro\" schema definition file: " + definitionStr + ": " + ioe.getMessage());
|
throw new RuntimeException("Error reading the specified \"Avro\" schema definition file: " + definitionStr + ": " + ioe.getMessage());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user