Java application executable jar file interacting with server Chinese garbled

Source: Internet
Author: User

After generating the executable jar file, directly double-click Open app, send HTTP request with Chinese, the server received the Chinese garbled!

How to resolve:

1. Execute the JAVAW command in the cmd command to open the jar executable application:

Open the cmd Command box and enter:

Javaw-dfile.encoding=utf-8-jar D:/client-tool/mobile-client.jar

2. Write a batch file yourself to open the jar executable application:

File contents:

Start Javaw-dfile.encoding=utf-8-jar D:/client-tool/mobile-client.jar

Exit

Note: Exit immediately exits the cmd command box, just like the literal meaning. If you do not add this command, the Black cmd command box will be displayed after startup.

Limited ability, currently only find this solution, if any man has a better solution please leave a message or comment!!! will be extremely grateful!!

Java application executable jar file interacting with server Chinese garbled

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.