Permalink
Browse files

Merge pull request #39 from jabley/java-charset

Don't use platform default charset
  • Loading branch information...
2 parents 8508f05 + da00ff7 commit c3eefa87a2773fb124d971f08ba814ff08384f16 @kastner kastner committed Feb 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 StatsdClient.java
View
@@ -143,7 +143,7 @@ private boolean send(double sampleRate, String... stats) {
private boolean doSend(String stat) {
try {
- byte[] data = stat.getBytes();
+ byte[] data = stat.getBytes("utf-8");
_sock.send(new DatagramPacket(data, data.length, _host, _port));
return true;
}

0 comments on commit c3eefa8

Please sign in to comment.