Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

193
Visualizações
how to change the encoding of the java compilation error message?

for example,I tried to compile a java file which can not pass the compilation in a cmd line. the java code:

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("hello World")
    }
}

cmd line: javac HelloWorld.java

and the compilation error message will be showed in the cmd window. the error message

its encoding is GBK,but the cmd program's encoding is utf-8. How can I change the encoding of the java compilation error message?(I'm using windows 10 and jdk8)

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

This is a problem with the default codepage on Windows when you use Terminal.

Use the chcp command at the CMD and PowerShell prompt to list the current code page.

On this page: "Code Page Identifiers - Win32 apps | Microsoft Docs" you will find a list of all Windows code pages. Last on the list is utf-8.

In the Windows 10 version (most current in January 2022) we can configure Regional Settings. Chose the Unicode utf-8 Check-box on Regional Settings of Settings/Regional.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda