I am trying to read text from a text file. There are some special characters like å,ä and ö. When i make a string and print out that string then i get ?? from these special char
Check here for the lists of Java supported encodings
Most common single-byte encoding that includes non-ascii characters is ISO8859_1; maybe your file is that, and you should specifiy that encoding for your FileInputStream
The problem might not be with the file but with the console where you are trying to print. I suggest you follow the following steps
Finally, this article Unicode - How to get characters right? is a must read.