
java garbled question marks are as shown below:
Everything involving Chinese characters has turned into a question mark, which is very strange. It is an international practice, starting from the html page Check,
It seems that the encoding is OK, and the Chinese characters in other modules of the page can be displayed normally, so I start to conclude that it is a background problem. Start looking at the action, and check the request and response. Set the encoding format to utf-8. After restarting the project, I found that it was still garbled.
Look at the code of my controller below:
The return value of service is as follows:
The background returns a json object , and what I passed to the front desk was of type string, so the problem occurred here. After changing the return value to a json object, everything went fine.
For more java knowledge, please pay attention to the java basic tutorial column.
The above is the detailed content of Java garbled question mark solution. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools

Atom editor mac version download
The most popular open source editor

Dreamweaver Mac version
Visual web development tools





