java.nio.charset.MalformedInputException: Input length = 1

一 背景

启动nacos微服务报如下错误,检查xml文件,未发现问题,经确定是格式问题

image

 

二 解决

java -Dfile.encoding=utf-8

启动项,设置编码格式