Groovy File 读取中文乱码
1.指定GBK编码 def jsontext = ""new File(filename).eachLine ("GBK"){ jsontext = jsontext+it}log.info jsontext 2.指定UTF-8编码 def jsontext = ""new File(filename).eachLine ("UTF-8"){