Entering special characters at the command line.

I'm writing a simple program in java that automates certain processes in learning a foreign language.
This includes holding a database of vocabulary within the context of a sentence and testing a student on words they have encountered.
Nothing too tricky, except that I am having trouble with entering special characters at the command line. I'm not really surprised by this and was hoping that someone could help me.
I'm using a mixture of Solaris 8 and Mac OS X 10.3 for running the software, so anyone with any input on either of these systems will be able to help.
The characters I am trying to enter are the following:
�,�,�,�,�,�,�,�,�,�,�,�.
They are latin, and used in Spanish amongst other languages.
I'm a little confused by the implementation of character sets. I can enter these characters in applications such as word or textedit or an email, but just not at an X window.
From looking at the web it appears that these characters can be input using the
Latin1 (ISO 8859-1) character set or the ISO 10646-1/Unicode extension.
I'm just not sure what I actually have to do to get it to work.
If anyone can offer any help I'd be really grateful.
Ian Stanton

It's a problem that could be encountered in different circumstances, in this circumstance it is with a program I am writing in java.
I anticipate that these days not that many applications are delivered that require use of the command line, but since I am still learning Java it is necessary to explore this avenue.
It's interesting actually since presumably developers writing code for the international market need to accomodate characters similar to those I am attempting to enter, and more that are less familiar to me such as far and middle eastern scripts, and of course many others.
We (possibly) assume that since a character is printed on our keyboard it is a simple matter to read it in. But what if I was a Spanish student wanting to type a character into the command line and that character wasn't there? I believe that Spanish (and variants of that language) is the third most spoken language on the planet.
These characters are often relatively easy to enter in office and internet applications amongst others but apparetly not so at the command line.
Maybe this question is more suitably asked of the Unix community but I thought it a good idea to try Java since i was writing Java code and that many Java programmers could have encountered the same problem.

Similar Messages

  • How can I open a PDF file and enter a word in the Find field from the command line?

    Hi,
    I want to use a PDF file as the help file of another program.
    I have found somewhere an incomplete description of the command line parameters of Acrobat Reader.
    It described how to open a file and jump to its given page.
    I have written the following batch file based on that.
    rem Open pdf (prm1) with Acrobat reader at given page (prm2)
    "%adobe_rdr%\AcroRd32.exe" /N "zoom=73&page=%2=OpenActions" %1
    The following batch file opens the search dialog:
    rem Open pdf (prm1) with Acrobat reader
    rem and search for something (prm2)
    "%adobe_rdr%\AcroRd32.exe" /N "zoom=73&navpanes=1=OpenActions&search=%2" %1
    I need the simple find field instead of the complicated search window.
    Regards
                   Ferenc

    Not possible.

  • Special characters in the shared key when importing firewalls

    Hello
    We are using CWVMS to import and configure PIX firewalls.
    The shared isakmp key of one of the firewalls has not been accepted during import because it contains special characters.
    The problem is that the customer does not have authority to change the key.
    Does Management Center for Firewalls really accept only alphanumeric isakmp keys ? Is there another alternative to changing the key ?
    Thank you sincerely for your help.

    I am not sure what your problem is. But ISAKMP keys can be changed directly on the PIX using the command line interface. I have not used any special character in the ISAKMP keys. Can anyone confirm that special characters can be used within ISAKMP keys?

  • How to hide the command line arguments from solaris process

    Hi All,
    When I execute a JAR application from a java file using the Runtime.getRuntime, the command line arguments (user ID and Password details) which I passed for executing the application displayed on Solaris process (ps -ef).
    Could anybody please help me, how can I hide either the process or the command line arguments from the Solaris process?
    I cannot pass any asterix or any special character in place of password, because the executing application doesn't have any functionality to retreive the password which send as asterix characters.
    Please help me
    SumodeV

    Thanks for all the response.
    I have created a design and implement the functionality which executes the JAR application in Solaris environment without showing any details in the process details.
    I have used the Java Reflection method, which invokes the JAR application. I am sharing the details here for all those who looking for it.
    1, Inside the Customer application [Jar File is running for it], collect the necessary session details [Using System.get property method]
    2, Create an independent Java file, which should be used to invoke the JAR application
    3, Create the ProcessBuilder object and use a command - execute the Java file [a wrapper code] using normal Java command
    4, Pass the necessary session details to the ProcessBuilder using the environment() function.
    5. Collect the environment values in the independent Java file (Which was invoked by ProcessBuilder) and set details for its environment using System.setProperty.
    6, Use reflection technique to invoke the JAR plugin [which you want to run]. You can use the standard Java functionality to read the MANIFEST file of JAR and load the main class using URLClassLoader.
    7, Invoke the main method of the JAR file, which run the JAR application in Solaris window
    This solution will make sure that the process cannot display any session details in the Solaris Environment.
    Note: Use String[] array while create the command. Otherwise the JAR application cannot pop-up.
    Regards
    Sumode

  • How to enter Special Characters in JSP

    Is there any way to enter special characters such as ºC ? i am using J2EE and Oracle 9 i.
    When i try to enter 2ºC after updating the datbase it is converted to 2ºC. All special characters are prefixed with Â. Pls suggest some better way ..

    This normally relates to your unicode set you are using. For example the database is using a different way of storing data than how it's being parsed.
    One quick/dirty fix is to save the data using HTML encoded elements, for example ©
    You will also find that £ £ will cause problems. If your web app is only for one country then I would not worry about it however if you need multi language support then you need to read up a little
    [Unicode Support|http://www.alanwood.net/unicode/]

  • How can hide the command line of a t.code in the portal

    Dear Experts.
    I have the following doubt:
    How can hide the Command Line of a Report that is called with a T.Code in the portal?
    Attach Image:
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    When I created a service using the T.Code SICF for the T.Code , I can hide buttons and the filed command line  using
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    With notes 1010519, "SAP GUI for HTML: Simplified Title Area Without Menu and OK Code" and 959417.
    But the problem is that when I create the service in the T.Code SICF, I also have that create an Iview IAC in the portal.
    The Question is : How can hide this fields and buttons if I want Publish the T.code using an Iview Transaction in the portal?
    In this moment I have used the two options:
    1 option) I created a service using the t.Code SICF for my Transaction and I also created an Iview IAC in the portal for call the service.
    RESULT:
    SAP Web Application Server
             500 Connection timed out
            Error: -5
           Version: 7000
           Component: ICM
           Date/Time: Sat Jun 12 20:26:39 2010 
           Module: icxxthr_mt.c
           Line: 2698
           Server: xyxab...
    Error Tag: {-}
    Detail: Connection to partner timed out after 60s
    2)  created an Iview Transaction  in the portal and  call my transaction.
    RESULT.
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    But not can hide the field Command Line and other buttons.
    I think that the command :
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    Only can be used if I create a service using the T.Code SICF .
    Best Regards
    Carmen.

    Hi Carmen,
    The bottom line is that this cannot be done for transaction iviews without modifying the standard webgui service in SICF, which is probably not a good idea (since it affects everyone using SAP GUI for HTML). (You could hack the appintegrator to add the ~webgui_simple_toolbar parameter to the transaction URL template in the portal, but again its not a recommended thing to do ...). Better to create an IAC service in SICF with ~webgui=1 where you set the required appearance using an appropriate value for ~webgui_simple_toolbar, and then create an IAC iview to point at this service.
    You can even override the ~transaction value configured in the new service in individual IAC iviews by entering the appropriate value in the application parameter of the iview, for example:
    ~okcode=/nSU01
    And you can pass parameters in the same way:
    ~okcode=/nSU01 USR02-BNAME=xyz;USREFUS-USERALIAS=abc;
    By the way, it would not be recommended to create a URL iview to access an IAC, since you are likely to encounter session management issues in this scenario - better to use an IAC iview.
    Regards, Rory

  • How can I put a "esc" character in the command line of the Iinstrument I/O Assistant?

    Hello
    I'm trying to prepare a VI for a device (Ultrasonic detector) connected to my RS-232 serial port, and which requires commands and enquires in the format
    The problem is very simple....since is a non printable character, how can I put it in the command line of the Instrument I/O Assistant???
    Best regards
    Massimiliano

    Hello Massimiliano,
    Thanks for contacting National Instruments.
    To answer you question, the best way to do what you are looking to do is to use the instrument I/O Assistant to generate whatever you want the code to do without the non-displayable characters, then once the Instrument I/O Assistant block is on the block diagram, then right click on the Assistant block and select to open the front panel. You will want to choose to convert it to a standard VI, which will allow you to change the code that has been auto generated. In order to add non-displayable characters to this code you follow the knowledgebase link below.
    http://digital.ni.com/public.nsf/websearch/77c8f61d36f5a23086256634005acb38
    Hope this helps!
    Regards,
    Steven B.
    Applications
    Engineering
    National Instruments

  • Connection string not in the command line argument.

    Hi,
    I found myself constantly looking for the debug connection string and to enter it in the "Command line arguments".  I decided to create my Add-On base class from which all my add-ons inherit from.
    In the constructor of the base Add-On class I determine the connection string based on whether the code is in debug more or not.
    Example:
    string connectionString  = string.Empty;
    #if DEBUG
        _connectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056";
    #else
        // Get the log info
        if (Environment.GetCommandLineArgs().Length > 1 )
            _connectionString = Environment.GetCommandLineArgs().GetValue(1).ToString();
    #endif
    I hope this help.
    Edited by: B1Computing on Apr 5, 2011 8:20 PM

    Hi,
    I found myself constantly looking for the debug connection string and to enter it in the "Command line arguments".  I decided to create my Add-On base class from which all my add-ons inherit from.
    In the constructor of the base Add-On class I determine the connection string based on whether the code is in debug more or not.
    Example:
    string connectionString  = string.Empty;
    #if DEBUG
        _connectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056";
    #else
        // Get the log info
        if (Environment.GetCommandLineArgs().Length > 1 )
            _connectionString = Environment.GetCommandLineArgs().GetValue(1).ToString();
    #endif
    I hope this help.
    Edited by: B1Computing on Apr 5, 2011 8:20 PM

  • Can't send files to Trash from the command line

    Hello,
    as I'm programming in JAVA I must do all "special" operations as from the command line.
    I found several solutions but they don't work for me, at least not in Mavericks.
    I tried:
    osascript -e "tell app \"Finder\" to delete POSIX file \"/Users/me/totrash\""
    I got:
    21:60: execution error: Finder got an error: Handler can’t handle objects of this class. (-10010)
    I tried:
    echo "tell application \"Finder\" move POSIX file \"/Users/me/totrash\" to trash end tell | osascript
    I got:
    26:30: syntax error: Expected end of line but found command name. (-2741)
    Is there any working AppleScript way to send a file to the Trash Bin?
    Thanks in advance.
    ;JOOP!

    Near ....... I did not misspell 'me', I was in a different directory after all my experimenting .....
    Curse those who write cryptic error messages ...
    Bless those who still get it.
    So, thanks.
    ;JOOP!

  • Enterting File to be used at the command line (help!)

    I have this code which works on by loading a .txt which hold a matrix of numbers and doing some maths and the like on it. the problem with this is that it is limited to only being able to read from that one file. i would like to make it possible to enter the name of the .txt file at the command line when running the program
    e.g java FlatCost costs.txt
    heres the code so far (it works).
    import java.io.*;
    import java.util.Vector;
    public class FlatCost
        public static void main(String[] args) throws IOException    {       
            FileInputStream stream = new FileInputStream("costs.txt");
            InputStreamReader reader = new InputStreamReader(stream);       
            StreamTokenizer tokens = new StreamTokenizer(reader);       
            Vector v = new Vector();
            while(tokens.nextToken() != tokens.TT_EOF)        {           
                v.add(new Integer((int) tokens.nval));
                System.out.println(new Integer((int) tokens.nval));        }       
            System.out.println("Enter floor number: ");       
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            String line1 = in.readLine();
            int x = Integer.parseInt(line1);
            if(x > 3) System.out.println("Sorry, out of range");
            System.out.println("Enter no. rooms: ");       
            String line2 = in.readLine();          
            int y = Integer.parseInt(line2);
            if(y > 2) System.out.println("Sorry, out of range");
            int numFloors = v.size()/4;               
            int dest = ((x*4) + y + 1);
            System.out.println("PRICE: " + v.get(dest));   
    }Please help because i dont know how to do it
    Carl

    That's right... specificallyFileInputStream
    stream = new FileInputStream(args[0]);
    Also don't forget make sure the argument was supplied. Otherwise you'll get a runtime array out of bounds.
       if (args.length < 1) {
          System.out.println("Usage: java FlatCost filename");
          System.out.println("   eg: java FlatCost costs.txt");
          // exit or supply default file
       }

  • Returning focus to the command line?

    I am trying to write a text based card game but I am stuck again. When I run this code after I type "help" to view the key words the program terminates. How would I go about retuning focus to the command line instead of terminating the program.
    import java.util.*;
    import java.io.*;
    public class BlackJack {
    public static String help = "\tKey Words\n--------------------\nhelp = Help\ndeal = New Game\nhit = Get Another Card\ncall = Dealer shows cards";
    public static void main(String[] args) {
    System.out.println("Welcome to Black Jack!\nPlease enter a value.\nEnter \"help\" for help.");
    String input = "";
    InputStreamReader isr = new InputStreamReader(System.in);
    BufferedReader buffer = new BufferedReader(isr);
    try {
    input = buffer.readLine();
    buffer.close();
    if(input.equals("help")) {
    System.out.println(help);
    else {
    System.out.println("Incorrect please try again!");
    catch(IOException e) {
    System.out.println("Incorrect value please try again!");
    }Edited by: Aj_Green on Aug 7, 2008 11:25 AM

    I have created a method for getInput() however; when I type "help" the while loop infinately prints my else string. Here is the code. If I type "quit" into the command line the program terminates as it should.
    import java.util.*;
    import java.io.*;
    public class BlackJack {
         public static String help = "\tKey Words\n--------------------\nhelp = Help\ndeal = New Game\nhit = Get Another Card\ncall = Dealer shows cards";
         public static String getInput() {
              InputStreamReader isr = new InputStreamReader(System.in);
               BufferedReader buffer = new BufferedReader(isr);
              String input = "";
              try {
              input = buffer.readLine();
              buffer.close();
              return input;     
              catch(IOException e) {
              System.out.println("An input error has occured!");
              return input;
         public static void main(String[] args) {
              System.out.println("Welcome to Black Jack!\nPlease enter a value.\nEnter \"help\" for help.");
              boolean gameOver = false;
              while(!gameOver) {
              String ans = getInput();
              if("quit".equals(ans)) {
              gameOver = true;
              else if("help".equals(ans)) {
              System.out.println(help);
              else {
              System.out.println("Incorrect please try again!");
    }Edited by: Aj_Green on Aug 7, 2008 12:38 PM

  • Using the command line client...

    I've got a few thousand videos, with metadata, that I have to add to an existing FCS install. Right now, I'm just trying to figure out the proper way to use the command line.
    If I run the following command as root (paasset_predict_motorvideo is the name of my metadata set, as listed in the admin app...)
    bash-3.2# ./fcsvr_client createasset paasset_predict_motorvideo /Users/bfinley/Desktop/test.mov
    I get the following error:
    { CODE = E_NOTSUPP, DESC = Entity /Users/bfinley/Desktop/test.mov doesn't know how to do anything, SRC_FILE = PmdEntity.C, SRC_LINE = 1509, ERROR_TYPE = ET_PERM, ADDRESS = /Users/bfinley/Desktop/test.mov }
    If I pass in the --host, --user, and -pass on the same command, i get:
    { CODE = EMISSINGPARAM, DESC = CURRENTPERMID missing in PmsTask_QueryPerms, looks like unknown node failed to pass it down to child unknown node, NODE = ["PmsTask_QueryPerms" 0x2a51c50, ref=3, wref=2] taskState=0 dbqueue=0x184fb64 needTrans, SRC_FILE = PmsTask_QueryPerms.C, SRC_LINE = 136 }
    I don't need to add any metadata to it, and i get the same error whether I enter any metadata at the end of the query or not.
    I just have a pile of videos, the filenames of which are keys to a table that contains the rest of the metadata, and I want to automate the addition of them to the new FC Server install.
    Am I going about this the wrong way?
    Thanks in advance.

    Brian:
    I've start by placing assets into a device that is configured with Final Cut Server (FCSvr).
    Example, let say you have a folder on your desktop name 1000videos.
    Create a device in FCSvr and map it to /Users/bfinley/1000videos.
    Name this Device with the name of your choice i.e. Library2
    Don't apply any scan schedules to this device etc.
    After you're done with that determine the device id of the new created device by running this command
    ./fcsvr_client search /dev
    you get some output like
    Address DEVICE_NAME DEVICE_TYPE
    /dev/7 Archive_Device filesystem
    /dev/13 Library filesystem
    /dev/10 Media filesystem
    Note down the device id of your newly created device i.e. /dev/13
    Next assuming that you have a file with a filename of test.mov
    use the following command
    sudo fcsvr_client createasset paasset_predict_motorvideo /dev13/test.mov
    you should receive a response to this output containing the newly create asset id.
    Hope this helps.
    Nicholas Stokes
    XPlatform Consulting
    [email protected]

  • Ffmpeg wrapper that behaves like the command line

    I have ffmpeg compiling now and can package up a swc using the wrapper code from  www.rainbowcreatures.com/product_flashywrappers.php
    It all works etc but doesnt quite do what I need, instead of passing frames I need to pass it a complete h264 stream as bytearray and get it to output either rawvideo frames or an flv.
    Would it be possible to knock up a wrapper that basically gives command line style access, using pipe access in/out etc.  I have 0 c knowledge but woudlnt it be easier than writing wrapper functions for each specific function we need?

    Hi, I'm actually the author of FlashyWrappers
    I was trying to do just that but then it started to appear too hard to understand all that source in ffmpeg.c and ffmpeg_opt.c instead of starting from the basic wrapper, so I abandoned that approach. Another reason was I wanted something "async" so that the Flash doesn't freeze - by just rewriting the command line tool I figured it would launch and return only when its done, freezing everything else in the meantime. A solution of course would be to launch it on another worker, but I wanted to also show progress %, since transcoding/encoding takes quite some time.
    So eventually I had faster success with the custom wrapper. THe fastest soution for you would also be a custom wrapper I might derive from my original wrapper. The biggest issue I've seen at the time, apart from not understanding ffmpeg, was to rewrite input/output of their tool to "normal" memory as ffmpeg had special approaches to achieve that, like writing your own protocol which I had to grasp yet.
    Looking back at it, I think I might be  able to rewrite the command line tool since I've learned  how to replace file input/output by memory in my own wrapper. The async / % issue would still be present of course, but in time that might be tweaked. My current priorities are finishing FlashyWrappers 2.0 and also finishing a product derived from that. But I might take on porting ffmpeg command line after that, its of course appealing to have universal solution for ffmpeg in web Flash.

  • Entering special characters for Social Beat on G'Zone Ravine?

    I've figured out how to enter special characters in a text, or in mobile IM. But I am unable to find a method for doing so in Social Beat. My username and password both use special characters, but I cannot find the option to enter these.

    Thank you for your inquiry and I apologize for any confusion. I am providing you steps for how to change your symbols to special characters when your at the long in screen when using the Social Beat application. I was able to locate this information from the online user manuel and here is a link for further reference. I hope these steps as listed below helps.
    To using Symbol Text Input to insert symbols or punctuation, follow these steps from the text entry screen:
    1. Press the Left Soft Key, select Symbols, then press the Center Select Key [OK].
    2. Press the Right Soft Key [Next] to view the next 12 symbols or Left Soft Key [Prev] to view the previous 12 symbols.
    3. Select the symbol you want to insert using the Directional Key, then press the Center Select Key [OK] to select it.

  • Entering Special Characters.

    User requires information on entering special characters (i.e.: a with umlat, etc.) as part of a name. So long as the language code allows for such, what is the easiest way to accomplish such? User is using forms via IE.

    I would think that the easiest way is to use OS level keyboard layouts. In XP they all come with the OS and its as easy as activating a new layout in the Regional and Language options Control Panel applet. Once you have done that you can switch between layout with a configurable key combination.
    If that is not an option you can also enter umlauts with the Alt-[ASCII number] combination but that requires the user to remember the number for each umlaut.

Maybe you are looking for

  • No sound with my QuickTime

    I am so frustrated with QuickTime. No sound and I've tried the check the box thing. What do I need to do to get the sound to work? Apple needs to step up and fix this problem. Someone help. Please.

  • Just bought a new iMac G5 and trying to use iMovie.

    Hi, I just bought my first Mac computer a week ago, but i'm having a little trouble using iMovieHD - with the latest update, but i'm having trouble importing an mpeg2 in so that I can edit and do other things with it. I did purchase the mpeg2 compone

  • New iPhones for the Kids

    So we got two new iPhone for the kids and sent them money to their iTunes account for buying apps. However they still cant as the phone wants thier account linked to a credit card. If they have money in thier account why is this? Is there anything th

  • How to verify a valid indentifier

    i have an assigment to identify whether a given string is a valid identifier or not? i guess there is a method isIdentifier() but I dont rememeber the class. can any one help me? plz

  • I some how deleted my contacts. Is there any way to fix this??

    ...