Login locally to your Ubuntu (not using XRDP).
1. Run setxkbmap -model pc105 -layout no
Note: Replace "no" with your layout code
2. Run sudo xrdp-genkeymap /etc/xrdp/km-0414.ini
Note: Replace "km-0414.ini" with your numerical layout code (check list below)
3. Restart XRDP service via sudo service xrdp restart
4. Try to login again via RDP
In this test case, we have used km-041a.ini file which belongs to Norwegian keyboard layout.
You need to find the specific code for your keyboard layout. The list is here: