You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the upload_style method in the geoserver-rest api to add a new style, and my sld file contains Chinese fields, and after adding it, Chinese garbled characters.
Here are my sld files: 县.zip
The text was updated successfully, but these errors were encountered:
The SLD file I uploaded is encoded in UTF-8, but the Chinese garbled code is cleared in the style, similar to this:
This is the source file:
This is after uploading:
It looks weird. Have you tried directly uploading the SLD to the geoserver? Also, it is better to check the geoserver log file. I have no idea about this issue.
Manually add the style file and save it to the geoserver, if the sld file has Chinese, the file encoding will change to GB2312, if there is no Chinese file encoding will be uft-8. Upload the sld file via geoserver-rest, no matter what encoding format the sld file, it will be saved as uft-8 after uploading, here the sld file encoding containing Chinese is not changed to GB2312, this is the main reason for the garbled Chinese, is there any way you can solve this problem? Thank you very much.
I'm using the upload_style method in the geoserver-rest api to add a new style, and my sld file contains Chinese fields, and after adding it, Chinese garbled characters.
Here are my sld files:
县.zip
The text was updated successfully, but these errors were encountered: