Unit testing Grails单元测试比较字符串编码错误
我下面有一个单元测试失败了,可能是因为我不知道如何解决编码问题。class和messages.properties文件都是UTF-8编码的。我在eclipse中签入了文件属性Unit testing Grails单元测试比较字符串编码错误,unit-testing,grails,encoding,utf-8,groovy,Unit Testing,Grails,Encoding,Utf 8,Groovy,我下面有一个单元测试失败了,可能是因为我不知道如何解决编码问题。class和messages.properties文件都是UTF-8编码的。我在eclipse中签入了文件属性 assert mobileResponse.toMobile().data.get('mobile_error_description') == 'Usuário e/ou senha inexistentes e/ou inválidos.' 控制台输出为: assert mobileResponse.toMobile
assert mobileResponse.toMobile().data.get('mobile_error_description') == 'Usuário e/ou senha inexistentes e/ou inválidos.'
控制台输出为:
assert mobileResponse.toMobile().data.get('mobile_error_description') == "Usu√°rio e/ou senha inexistentes e/ou inv√°lidos."
|false
可能是这只虫子吗?