Results 1 to 4 of 4

Thread: Problem of accents in Java?

  1. #1
    Join Date
    Nov 2008
    Posts
    98

    Problem of accents in Java?

    Hello, I just installed the JDK 6 update 11 on my pc.
    When I write a program and I met for example:

    System.out.println (i + "Measure in kilometres");

    St accents replaced with bizarre characters and cedillas too. Yet I installed Multilanguage Pack How to fix this problem?

  2. #2
    Join Date
    May 2008
    Posts
    115

    Re: Problem of accents in Java?

    It is a concern for charset in your files. Java and javac compiler.

    Your file. Java is recorded in a charset (probably UTF-8), and javac think it is registered in another (probably Latin-1).

    Two possibilities:
    - Register your. Java in Latin-1 (also known as ISO-8859-1) instead of utf-8.
    - Javac say that the source files are in utf-8. (javac-encoding utf8 MaClasse.java)

  3. #3
    Join Date
    Nov 2008
    Posts
    98

    Re: Problem of accents in Java?

    Quote Originally Posted by JoeFrat View Post
    It is a concern for charset in your files. Java and javac compiler.

    Your file. Java is recorded in a charset (probably UTF-8), and javac think it is registered in another (probably Latin-1).

    Two possibilities:
    - Register your. Java in Latin-1 (also known as ISO-8859-1) instead of utf-8.
    - Javac say that the source files are in utf-8. (javac-encoding utf8 MaClasse.java)
    The command-encoding utf8-warning puts me and when I run the program there are always signs to place accents and the file is coded in ANSI and I do not have the option to record in Latin-1.
    I work with Notepad + +.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Problem of accents in Java?

    Quote Originally Posted by JoeFrat View Post
    It is a concern for charset in your files. Java and javac compiler.

    Your file. Java is recorded in a charset (probably UTF-8), and javac think it is registered in another (probably Latin-1).

    Two possibilities:
    - Register your. Java in Latin-1 (also known as ISO-8859-1) instead of utf-8.
    - Javac say that the source files are in utf-8. (javac-encoding utf8 MaClasse.java)
    The response above is actually a solution But for more security you can also use the program which will transform native2ascii accents in coding intermediary (eg becomes \ u00e8). This is especially useful if you provided your sources to someone else who does not have the same editor you: imagine that your publisher or UTF8

Similar Threads

  1. Need Spanish accents in Windows 7
    By Neel Kamal55 in forum Operating Systems
    Replies: 3
    Last Post: 04-12-2010, 01:16 AM
  2. Java JDK problem
    By Samara in forum Software Development
    Replies: 6
    Last Post: 19-07-2010, 01:02 PM
  3. Texmaker removes all accents
    By Aaliya Seth in forum Windows Software
    Replies: 5
    Last Post: 20-01-2010, 02:31 PM
  4. Square instead of accents
    By AZUL in forum Software Development
    Replies: 4
    Last Post: 04-12-2009, 04:28 PM
  5. Problem With Java
    By Kusagra in forum Software Development
    Replies: 2
    Last Post: 17-03-2009, 11:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,667,346.81231 seconds with 17 queries