dead keys

Hi,
When I use emacs or other XPhoton apps, I find that the key with ~ and #
on (uk keyboard) doesn’t work - and doesn’t register any event at all.
What do I need to do to change this? I also had problems with " and @
swapped round, but xmodmap solved that, but can’t solve the dead key
problem.

Any ideas?

Thanks.