If you have the output you want visible on your computer, perhaps in the Character Palette, you can drag the output onto a key in the Ukelele window. When you do this, the output gets changed to what you dragged.

Output can be longer than a single character, up to twenty characters in fact. So, you can take a selection from a word processor or similar and drag it onto a key to use that as the key output.