Skip to content

Commit

Permalink
Postgres file reader now assumes UTF8 (#15697)
Browse files Browse the repository at this point in the history
* Postgres file reader assumes UTF8

* fix build :/

Co-authored-by: Edward Gao <edward.gao@airbyte.io>
  • Loading branch information
evantahler and edgao authored Aug 16, 2022
1 parent 27f8596 commit 5d35c7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private static String checkOrCreatePassword(final JsonNode encryption) {

private static String readFile(final File file) {
try {
BufferedReader reader = new BufferedReader(new FileReader(file));
BufferedReader reader = new BufferedReader(new FileReader(file, StandardCharsets.UTF_8));
String currentLine = reader.readLine();
reader.close();
return currentLine;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableMap.Builder;
import com.google.common.collect.Sets;
import io.airbyte.commons.features.EnvVariableFeatureFlags;
import io.airbyte.commons.features.FeatureFlags;
Expand Down

0 comments on commit 5d35c7f

Please sign in to comment.