Here is another example how to feed the Spanish Dictionara DRAE from the shell, the script 'rae.sh' sends the word is ISO coded to the server using the browser:
#!/bin/sh
# the server lema.rae.es only understands ISO 8859-1 coded words
# but we have to send them via the 'ubuntu-app-launch' either in ASCII or in UTF-8,
# so we rewrite the spanish tilded chars in ISO coding, but as %xx values
iso=`echo $1 | sed 's/ñ/%f1/g' |\
sed 's/á/%e1/g' |\
sed 's/é/%e9/g' |\
sed 's/í/%ed/g' |\
sed 's/ó/%f3/g' |\
sed 's/ú/%fa/g' |\
sed 's/ü/%fc/g'`
# ubuntu-app-launch webbrowser-app "http://lema.rae.es/drae/srv/search?val=$iso"
ubuntu-app-launch webbrowser-app "http://lema.rae.es/drae/?val=$iso"