Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use UTF-8 encoding for the source and resources - JSON must be UFT-8 …

…encoded
  • Loading branch information...
commit e11d82922e44964b8d493ef97bcd9a55eb9d982b 1 parent 550cbf8
@asomov asomov authored
View
1  .gitignore
@@ -11,3 +11,4 @@ velocity.log
*.iml
*.ipr
*.iws
+.idea
View
6 core/src/main/java/com/zaubersoftware/gnip4j/api/GnipStream.java
@@ -21,9 +21,9 @@
/**
* <p>
- * A Stream for the Gnip. Once created with {@link GnipFacade} you más register
+ * A Stream for the Gnip. Once created with {@link GnipFacade} you must register
* some observer that will process the data. User MUST call {@link #close()}
- * to release all the releated resources (or when you want to handle gracefull shutdowns)
+ * to release all the related resources (or when you want to handle graceful shutdowns)
* </p>
* <p>
* Implementations SHOULD handle reconnections and timeouts.
@@ -39,7 +39,7 @@
/**
* await for the stream to be {@link #close()} or
- * to be shutdown because of some catastrofic issue.
+ * to be shutdown because of some catastrophic issue.
*/
void await() throws InterruptedException;
View
2  mock-server/src/main/java/com/zaubersoftware/gnip4j/server/netty/NettyChunkedInputFactory.java
@@ -62,7 +62,7 @@ public GnipChunkedInput getChunkedInput() {
protected static final Collection<String> parseActivities(final InputStream activities) {
try {
- final BufferedReader reader = new BufferedReader(new InputStreamReader(activities));
+ final BufferedReader reader = new BufferedReader(new InputStreamReader(activities, "UTF-8"));
final Collection<String> result = new ArrayList<String>();
String line;
while ((line = reader.readLine()) != null) {
View
4 pom.xml
@@ -101,7 +101,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
- <encoding>ISO-8859-1</encoding>
+ <encoding>UTF-8</encoding>
<source>1.6</source>
<target>1.6</target>
</configuration>
@@ -134,7 +134,7 @@
<exclude>.gitignore</exclude>
<exclude>**/*.txt</exclude>
</excludes>
- <encoding>iso-8859-1</encoding>
+ <encoding>UTF-8</encoding>
<strictCheck>true</strictCheck>
</configuration>
<executions>
Please sign in to comment.
Something went wrong with that request. Please try again.