I found a solution an documented it in my folder as:
53 Spanish tilded UTF-8 chars in a BT ASCII terminal
Using a QUERTY BT terminal which only has ASCII chars we can configure
Spanish tilded UTF-8 chars in a terminal urxvt the following way:
copy the desktop entry to .local:
cp /usr/share/applications/rxvt-unicode.desktop ~/.local/share/applications/
and modify it to start a shell script /home/purism/URxvt.sh which in turn
starts the terminal with a bigger font as
urxvt -ls -fn "xft:Bitstream Vera Sans Mono:pixelsize=16"
The essential for the keyboard mapping is in /home/purism/.Xdefaults as:
! settings for urxvt
URxvt.keysym.A-a: á
URxvt.keysym.A-e: é
URxvt.keysym.A-i: í
URxvt.keysym.A-o: ó
URxvt.keysym.A-n: ñ
URxvt.keysym.A-A: Á
URxvt.keysym.A-E: É
URxvt.keysym.A-I: Í
URxvt.keysym.A-O: Ó
URxvt.keysym.A-1: ¡
URxvt.keysym.A-2: ¿
! the #-sign is on the BT keyboard, but gives ESC-3
URxvt.keysym.E-3: #
That’s it and with Alt_L + n we get ñ