@@ -61,7 +61,7 @@ public Restful(CLI cli, Iterator itr) throws Exception {
6161 * non-existent, the label of the step is an empty string.
6262 */
6363 @ GET
64- @ Produces ("text/plain" )
64+ @ Produces ("text/plain;charset=UTF-8 " )
6565 @ Path ("hasNext" )
6666 public String hasNext () {
6767 if (machine .hasNextStep ()) {
@@ -88,7 +88,7 @@ public String hasNext() {
8888 * non-existent, the label of the step is an empty string.
8989 */
9090 @ GET
91- @ Produces ("text/plain" )
91+ @ Produces ("text/plain;charset=UTF-8 " )
9292 @ Path ("getNext" )
9393 public String getNext () {
9494 try {
@@ -104,7 +104,7 @@ public String getNext() {
104104 }
105105
106106 @ GET
107- @ Produces ("text/plain" )
107+ @ Produces ("text/plain;charset=UTF-8 " )
108108 @ Path ("getData" )
109109 public String getData (@ QueryParam ("key" ) String key ) {
110110 String value = machine .getCurrentContext ().getKeys ().get (key );
@@ -117,7 +117,7 @@ public String getData(@QueryParam("key") String key) {
117117 }
118118
119119 @ GET
120- @ Produces ("text/plain" )
120+ @ Produces ("text/plain;charset=UTF-8 " )
121121 @ Path ("setData" )
122122 public String setData (@ QueryParam ("script" ) String script ) {
123123 try {
@@ -139,7 +139,7 @@ public String setData(@QueryParam("script") String script) {
139139 }
140140
141141 @ GET
142- @ Produces ("text/plain" )
142+ @ Produces ("text/plain;charset=UTF-8 " )
143143 @ Path ("restart" )
144144 public String restart () throws Exception {
145145 machine = new SimpleMachine (cli .getContextsWithPathGenerators (cli .getOnline ().model .iterator ()));
@@ -152,7 +152,7 @@ public String restart() throws Exception {
152152 }
153153
154154 @ GET
155- @ Produces ("text/plain" )
155+ @ Produces ("text/plain;charset=UTF-8 " )
156156 @ Path ("fail" )
157157 public String fail (@ QueryParam ("reason" ) String reason ) {
158158 try {
@@ -170,7 +170,7 @@ public String fail(@QueryParam("reason") String reason) {
170170 }
171171
172172 @ GET
173- @ Produces ("text/plain" )
173+ @ Produces ("text/plain;charset=UTF-8 " )
174174 @ Path ("getStatistics" )
175175 public String getStatistics () {
176176 if (cli .getOnline ().json ) {
0 commit comments