Problems with displaying characters

i have a text field that loads a text from a external .txt
when i put characters like ñ á é í ó ú ü they are exchanged for little squers…
what can i do to make them display the rigth way?