Skip to content

Commit 49fe317

Browse files
author
Matias Melograno
committed
fixed special characters incomming from fetchers
1 parent 61300fc commit 49fe317

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

client/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
CHANGES
22

3+
3.3.3 (Apr , 2020)
4+
- Fix issue regarding special characters come from split/segments fetchers.
5+
36
3.3.2 (Jan 24, 2020)
47
- Shade com.google.guava as well
58

client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>io.split.client</groupId>
77
<artifactId>java-client-parent</artifactId>
8-
<version>3.3.2</version>
8+
<version>3.3.3-rc1</version>
99
</parent>
1010
<artifactId>java-client</artifactId>
1111
<packaging>jar</packaging>

client/src/main/java/io/split/client/HttpSegmentChangeFetcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public SegmentChange fetch(String segmentName, long since) {
7373

7474

7575

76-
String json = EntityUtils.toString(response.getEntity());
76+
String json = EntityUtils.toString(response.getEntity(), "UTF-8");
7777
if (_log.isDebugEnabled()) {
7878
_log.debug("Received json: " + json);
7979
}

client/src/main/java/io/split/client/HttpSplitChangeFetcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public SplitChange fetch(long since) {
6868
}
6969

7070

71-
String json = EntityUtils.toString(response.getEntity());
71+
String json = EntityUtils.toString(response.getEntity(), "UTF-8");
7272
if (_log.isDebugEnabled()) {
7373
_log.debug("Received json: " + json);
7474
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.split.client</groupId>
66
<artifactId>java-client-parent</artifactId>
7-
<version>3.3.2</version>
7+
<version>3.3.3-rc1</version>
88
<dependencyManagement>
99
<dependencies>
1010
<dependency>

testing/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.split.client</groupId>
88
<artifactId>java-client-parent</artifactId>
9-
<version>3.3.2</version>
9+
<version>3.3.3-rc1</version>
1010
</parent>
1111

1212
<artifactId>java-client-testing</artifactId>

0 commit comments

Comments
 (0)