开发者

How to implement a font that can display french characters

I am currently working on a project with multiple languages we also have french, the only problem is that it displays weird characters, in ste开发者_Python百科ad of normal french,

Can some1 help me with this ( its in java ) thanks from beforehand


If you are using Resource bundles in the ".properties" format, then this issue can be resolved by escaping al the not standard characters with their respective Unicode notation.

.propertie resource bundles are always in ISO-8859-1 encoding, so most likely you problem comes from converting the ISO-8859-1 encoding to UTF-8

You can easily convert all these characters to escaped Unicode representation by using one of these tools: native2ascii or AnyEdit

using nonstandard characters in resource bundles


It has nothing to do with the font, but the encoding. I suggest you switch to UTF-8, a good standard for international characters.


Most likely this has nothing to do with fonts, and the real problem is an encoding issue.

  • Read The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
  • Make sure your code uses the correct encoding whenever it converts between bytes and strings. Avoid the methods/constructors/classes that use the platform default encoding.


Please use Character Encoding Filers at server side this will resolve your issue

please check bwloe link

Character Encoding

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜