JSON parse error: Invalid UTF-8

created at 11-24-2021 views: 5

Copying the project from the old workspace to the new workspace directory today prompts the following error message:

Request","exception":"org.springframework.http.converter.HttpMessageNotReadableException","message":"JSON parse error: Invalid UTF-8 middle byte 0x3f

The reason for the above error: the encoding format is not configured for the jvm parameter and the encoding format is not specified for the eclipse workspace.


Specify jvm encoding format

Open Windows->Preferences->java->Installed JREs select the local jre version and click edit edit

set jre version

Add the specified encoding format:


edit JRE

Specify Workspace encoding format:

window-Preferences-General-workspace-other: UTF-8

SET General-workspac

created at:11-24-2021
edited at: 11-24-2021: