aspose file tools*
The moose likes Java in General and the fly likes Handling special cases in the Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Handling special cases in the Java?" Watch "Handling special cases in the Java?" New topic
Author

Handling special cases in the Java?

Karn Kumar
Ranch Hand

Joined: Aug 06, 2009
Posts: 146

Hi All,


How can i type the characters


ãÔæ

in the Java editor ?

What these type of character called as ?

Thanks in advance.

Regards,
Chetan.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38851
    
  23
Those are letters. I think the easiest way to use them is to change the language of the keyboard on your PC. Which editor are you using? The command prompt on DOS/Windows doesn't support all those characters and may print something peculiar instead.
Karn Kumar
Ranch Hand

Joined: Aug 06, 2009
Posts: 146


I am using eclipse for my development .

Thanks.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14150
    
  18

If you are using Windows, press Windows + R and then enter: charmap

That will start the character map application, in which you can pick letters and other characters that are not on your keyboard by hand and copy & paste them into your editor.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Markas Korotkovas
Greenhorn

Joined: Jan 27, 2011
Posts: 21

Excellent suggestion Jesper! Just an additional comment if you don't want to manually copu/paste characters most of them have a shortcut associated. charmap will show it in bottom right (if applicable Alt + ...). You just hold down Alt and type the number like Alt + 0212 then release Alt and Presto! Please be sure to select the correct font as well (to match the editor font in Eclipse) as character mappings may be different
Karn Kumar
Ranch Hand

Joined: Aug 06, 2009
Posts: 146

Thanks guys .....


As i am using linux can anyone suggest shortcuts for this ...

Thanks in advance...
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38851
    
  23
  • Right-click a panel
  • Add to panel
  • Character Palette
  • I have just áddéd à ©häraÇter palette. Click the letter or caret to change the options, then ctrl-V to paste the letter.

    But I still think it might be easier to change your keyboard language; I have mine set to German and English (UK) and it occasionally changes spontaneously and this sort of character appears mzsteriouslzÖ öäüß.
  • System
  • Preferences
  • Keyboard
  • Layouts tab
  • Add . . . etc
  •  
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Handling special cases in the Java?