\u00e4

Discussion in 'Plugin Development' started by sipsi133, Jan 24, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    sipsi133

    I saw that \u00e4 in essentials prints out character "ä" but how essentials did it?
     
  2. Offline

    Mattigins

    what?

    Are you asking how to change a part of a string so it spits out a different one?
     
  3. Offline

    sipsi133

    Mattigins In essentials Message_fi.properties it changes \u00e4 to character ä
     
  4. Offline

    Jogy34

    The '\' in a String is an escape character meaning that what comes after it will act in a different way. For instance if you put \n into a String it will create a new line (this doesn't work in minecraft though) or \" will put a quotation mark in the String. The same thing is happening here except you are giving the unicode (I think) representation of that character. In other words if you just use that in a String or save it to a 'char', any time you print it out 'ä' should appear instead.
     
  5. Offline

    RawCode

    '\' is control operator and is not part of string, it used for long list of features, \u is unicode annotation.
     
  6. Offline

    sipsi133

    Ok but how i can get character ä appear in chat? When player clicks sign, i want it to send message that contains ä
     
  7. Offline

    RawCode

    System.out.println('\u00e4' + "");
     
Thread Status:
Not open for further replies.

Share This Page