Skip to content

Commit 1a1efc9

Browse files
committed
set encoding for SQLcl
1 parent 2e3df24 commit 1a1efc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embulk-input-oracle/src/test/java/org/embulk/input/oracle/OracleTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static void execute(TestingEmbulk embulk, String sql) throws IOException
3737
"sql",
3838
user + "/" + password + "@" + host + ":" + port + "/" + database,
3939
"@" + sqlFile.toFile().getAbsolutePath());
40-
pb.environment().put("NLS_LANG", "American_America.UTF8");
40+
pb.environment().put("JAVA_TOOL_OPTIONS", "-Dfile.encoding=UTF8");
4141
pb.redirectErrorStream(true);
4242
int code;
4343
try {

0 commit comments

Comments
 (0)