From 4cf1b3ed9ee2a77c393f7fc5770015c8531f892c Mon Sep 17 00:00:00 2001 From: kimchy Date: Tue, 23 Feb 2010 21:33:54 +0200 Subject: [PATCH] read settings (json, yml) using utf8 --- .../main/java/org/elasticsearch/index/mapper/MapperService.java | 2 +- .../src/main/java/org/elasticsearch/util/io/Streams.java | 2 +- .../java/org/elasticsearch/util/settings/ImmutableSettings.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/MapperService.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/MapperService.java index 02e61b8ce07..e3db1a768ce 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/MapperService.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/MapperService.java @@ -122,7 +122,7 @@ public class MapperService extends AbstractIndexComponent implements Iterable loadedSettings = settingsLoader.load(Streams.copyToString(new InputStreamReader(is))); + Map loadedSettings = settingsLoader.load(Streams.copyToString(new InputStreamReader(is, "UTF-8"))); putAll(loadedSettings); } catch (IOException e) { throw new SettingsException("Failed to load settings from [" + resourceName + "]");