简体   繁体   中英

When I am reading a API in java I get ÃŽ in place of Î in a string. What should I do?

The string Île-de-France got converted into ÃŽle-de-France .

How should I get the original one in java?

This is an encoding issue. It may be that you encode the data incorrectly for transmission, storage or retrieval.

The best policy is to stick to a consistent Unicode encoding, such as UTF-8 for serialization, deserialization and storage of your data.

Search the w3.org website for I18n and Charmod. For more information. (I'm answering from my mobile while on holiday or I would give you links)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM