1. György Kohut
  2. hbbackend

Commits

György Kohut  committed 852b936

better use utf-8

  • Participants
  • Parent commits c4270cd
  • Branches master

Comments (0)

Files changed (2)

File src/main/java/org/honeynet/hbbackend/shadowserver_asn/ShadowserverAsn.java

View file
  • Ignore whitespace
 			socket.setSoTimeout(SO_TIMEOUT);
 			
 			BufferedReader in
-				= new BufferedReader(new InputStreamReader(socket.getInputStream(), "US-ASCII"));
+				= new BufferedReader(new InputStreamReader(socket.getInputStream(), "UTF-8"));
 			PrintWriter out
 				= new PrintWriter(socket.getOutputStream());
 			

File src/main/java/org/honeynet/hbbackend/shadowserver_geoip/ShadowserverGeoip.java

View file
  • Ignore whitespace
 			socket.setSoTimeout(SO_TIMEOUT);
 			
 			BufferedReader in
-				= new BufferedReader(new InputStreamReader(socket.getInputStream(), "US-ASCII"));
+				= new BufferedReader(new InputStreamReader(socket.getInputStream(), "UTF-8"));
 			PrintWriter out
 				= new PrintWriter(socket.getOutputStream());