Im not quite sure what is going on here, i've tried google but to no avail, maybe im just not searching right.
But i've made a little program to prints the content of a .txt file to the console. but for some reason it always outputs this weird questionmark thingy at the end.
It has no problem reading special characters specifik only to my country. i.e "æ"
Any ideas to why this appears?
OUTPUT:
casper@x220:~/code/readfile$ ./rdf test.txt
-----------------------------------
line 1 kartoffler
majs og ærter
�
-----------------------------------
There are 6 words in this document.
-----------------------------------