我尝试了不同的方法,但它们没有用。
//parsing data from config file
messageFactory = ConfigParser.createFromClasspathConfig(CONFIG_FILE_PATH);
//messageFactory.setForceStringEncoding(true);
//messageFactory.setCharacterEncoding("utf-8");
IsoMessage incomingMessage = messageFactory.parseMessage(data, NetworkInterfaceConfiguration.MESSAGE_HEADER_LENGTH);