Crypto js Malformed UTF-8 data
Note: If your application is started by jar package, please refer to solution 1; If your application is started by tomcat, please refer to solution 2.
Solution 1: jar package startup configuration
java -jar -Dfile.encoding=utf-8 itemapi-1.0.1.jar
Solution 2: tomat configuration
Set up in Tomcat’s catalina.bat.
set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG% -Dfile.encoding=UTF-8"
Read More:
- [Solved] Crypto-JS Failed to Decrypt Error: Uncaught Error: Malformed UTF-8 data
- [Solved] javax.crypto.BadPaddingException: Decryption error
- [Solved] Maven Startup Error: Malformed \uxxxx encoding
- [Solved] IDEA globally replace yml Error: you have entered malformed replacement
- [Solved] java.lang.IllegalAccessError: class org.springframework.data.redis.core.$ Proxy237 cannot access its superinterface org.springframework.data.redis.core.RedisConnectionUtils$RedisConnectionProxy
- Java.sql.sqlexception: unable to read more data from socket
- [Solved] Redis Error: org.springframework.data.redis.RedisConnectionFailureExceptionjava.net.SocketTimeoutException
- Lombok annotate @Data error [How to Solve]
- Conversion of two data types in Java
- Explicit and implicit conversion of Java data type
- Defining a bean of type ‘org.springframework.data.redis.core.RedisTemplate‘ in your configuration.
- [Solved] Consider defining a bean of type ‘org.springframework.data.redis.core.RedisTemplate‘ in your configu
- [Solved] write javaBean error, fastjson version 1.2.76, class org.apache.flink.table.data.binary
- When the database table field is set to self incrementing, use the entity class to insert or update the data to solve the error (Hibernate Framework)
- [Solved] JPA query data error: Page 1 of 0 containing UNKNOWN instances
- [Solved] nested exception is org.flowable.common.engine.api.FlowableException: Error initialising dmn data mo
- How to Solve the Primary Key of mybatisPlus Inserted Data is too Large Issue
- JAVA: How to Read JSON Format Data (Web Game Development)
- JPA multiple-data source startup error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘t
- Failed to auto-configure a DataSource: ‘spring.datasource.url‘ is not specified and no embedded data