Thanks "Metalcoder", the chcp 1252 save me a real headage in a similar problem:
dir /S > file.txt
compared to screen output of: dir /s
was different for such characters (ñ, á, ....)
after running chcp 1252, the redirection to a file works as spected, file has the characters as seen when no redirection is done.
Note: Console old codepage value was 850, instead of 1252.
Why Microsoft set an incorrect codepage code for the console? Now i wish to know how to set it permanently to 1252.