It turns out that I made a program where you get a String String or a text file txt where I should take it the occurrences of each word found within the text or string and also take the occurrences of punctuation and question marks, exclamation, and parentheses but when converting the text into a string the bufferedreder does not recognize these signs "¿", "¡" and puts it in the chain and when I print it I get this □ instead of the corresponding sign and when I enter the debugger it takes it as ' ' some solution?