Index: xdg-email.in =================================================================== RCS file: /cvs/portland/portland/xdg-utils/scripts/xdg-email.in,v retrieving revision 1.21 diff -u -3 -p -r1.21 xdg-email.in --- xdg-email.in 6 Oct 2006 20:49:45 -0000 1.21 +++ xdg-email.in 22 Oct 2006 15:56:23 -0000 @@ -113,7 +113,9 @@ result=$(echo "$1" | $utf8 | awk ' } for ( i=1; i<=length ($0); ++i ) { c = substr ($0, i, 1) - if ( c ~ /[@a-zA-Z0-9.-]/ ) { + if ( ord [c] > 127 ) { + e = e "%" sprintf("%02X", ord [c]) + } else if ( c ~ /[@a-zA-Z0-9.-]/ ) { e = e c } else { e = e "%" sprintf("%02X", ord [c])