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"
Using the project developed by HBuilderX, WeChat develop tool report an error:
Cannot read property ‘forceUpdate’ of undefined
The solution is shown in the figure:
In the project directory, find manifest.json – WeChat applet configuration – configure “WeChat applet AppID”
Open the developer tool, view the corresponding appid, fill in the upper part, and refresh the developer tool.
If you continue to report this error, restart hbuildx and wechat developer tools after configuration, and re run the project.