The Raspbian (Debian 6) distribution for Raspberry Pi comes by default with UK keyboard layout and this may cause inconvenience for typing special character.
The Raspbian is de-facto Debian so keyboard layout can be changed easily by executing the following command as root or via sudo:
After that it is not mandatory but it is highly recommended to run setupcon (again as root or via sudo) to speed up the OS booting process:
Restart the device and enjoy your new keyboard layout.
You might need to install the keyboard-configuration package before executing the above commands. Install it at as root or with sudo:
apt-get install keyboard-configuration