Eclipse French support
I need to enter some French chars in eclipse. How do I configure eclipse开发者_StackOverflow to enter French? I do have all the fonts that come with default eclipse packaging.
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.
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.
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
精彩评论