How to minimize question-marks when encoding a String as Latin-1?

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? Update: 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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准