diff --git a/app/src/main/java/org/ntlab/irisclient/viewmodels/DrawingStateViewModel.java b/app/src/main/java/org/ntlab/irisclient/viewmodels/DrawingStateViewModel.java index 9e49d1c..2c50ffa 100644 --- a/app/src/main/java/org/ntlab/irisclient/viewmodels/DrawingStateViewModel.java +++ b/app/src/main/java/org/ntlab/irisclient/viewmodels/DrawingStateViewModel.java @@ -119,9 +119,9 @@ updateDno(rid, nickName); } public String putDrawing(){ - String source = "サンプル"; - Charset charset = StandardCharsets.UTF_8; - String result = Base64.getEncoder().encodeToString(source.getBytes(charset)); - return result; + String string = "sample"; + Base64.Encoder encoder = Base64.getEncoder(); + String encoded = encoder.encodeToString(string.getBytes()); + return encoded; } }