DiogoFonseca1 Posted May 23, 2015 Report Share Posted May 23, 2015 Boas; Tenho estado a utilizar o IntelliJ e quando por exemplo ponho palavras com acentos ou caracteres especias e mando imprimir, aparece pontos de interrogação em vez desses caracteres. Alguém sabe o que poderei fazer para resolver este problema no IntelliJ ? Desde já obrigado 🙂 Link to comment Share on other sites More sharing options...
emanuelx Posted May 26, 2015 Report Share Posted May 26, 2015 testa isto byte ptext[] = myString.getBytes(ISO_8859_1); String value = new String(ptext, UTF_8); System.out.println(value); com calma e sem stresses Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now