When encoding a java String to Latin-1 (ie. charset ISO-8859-1) I currently convert the German symbol Î² ('\u03B2') to ÃŸ ('\u00DF') before performing the encoding. I'm trying to avoid a question mark in the encoding where possible.
Can anyone suggest other un-encodable characters which can be replaced an encodable character? Or better yet, a Java library that does it for me?
A bit of background: I have a Java program which exports it's data to CSV files so they can be read into a thrid-party application. A customer has complained that some characters are not converted - he gave me the example of "straÎ²e". Although technically Î² is the greek symbol for Beta, a quick google search shows quite a few people use it to mean ÃŸ.
以上就是How to minimize question-marks when encoding a String as Latin-1?的详细内容，更多请关注web前端其它相关文章！