Eclipse French support

会有一股神秘感。 提交于 2020-01-02 07:58:06

问题


I need to enter some French chars in eclipse. How do I configure eclipse to enter French? I do have all the fonts that come with default eclipse packaging.


回答1:


Preference / General / Workspace / Text file encoding

In my configuration, I see Cp1252 (probably set after my OS current setup) and have no problem with any French character. UTF-8 is a more general setting which will accommodate any OS language setup.

As noted in this blog entry, this should be UTF-8 by default, for encoding unlimited number of universal (Unicode) code points instead of a specific encoding grid like Cp1252.
(see The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) from Joel Spolsky)

The OP add:

Also eclipse default encoding is set to UTF-8.

Good!

In wordpad, I can type in French by just using Left Alt + Shift key to switch language. How do I do that for eclipse?

By typing the same combination: it will change the locale of the keyboard.
On my azerty keyboard, when I click within an eclipse editor (like a Java editor), I will see 'q' when I will type 'a', because the keyboard will be mapped to a qwerty one.




回答2:


AFAIK, Eclipse, like most (all?) Java applications, uses UTF8 as its normal character set. Thus, it is not Eclipse that needs to be changed to enter French characters, but your operating system (specifically the keyboard layout). You'll probably find it easier to figure out whatever escape sequences your OS uses to enter characters not representable on your keyboard. On Windows, you can do this with the Character Map utility available under Accessories. I'm not sure how to do it on other platforms.




回答3:


You can use this for accents. it shows you how to have accents if that's the help you requesting https://www.spanishdict.com/answers/282262/how-to-type-spanish-letters-and-accents-from-paralee



来源:https://stackoverflow.com/questions/1609846/eclipse-french-support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!