Now that everyone knows what kind of blunder can cause a mistyped 'ñ', There are the codes:
alt-164 ñ
alt-165 Ñ

El niño Juan Maria.