Question about tax on European share earnings for a UK resident

Hey there.

I hold some shares in companies listed on exchanges in Germany and Norway. I’m essentially wondering what I’m supposed to do in terms of taxes in the event of a profit when selling those and future shares. I read something about dividend taxes being reclaimable in certain jurisdictions, but I’m asking about money gained from selling shares.

Thanks.