Each side normally pays their own costs. However . . .
Quote:
"If you can’t pay your legal fees, a court can order your ex-partner (husband, wife or civil partner) to pay them.
The amount they pay would be taken into account when working out a financial settlement.
This isn’t something that courts routinely do, but they do make these orders in some cases.
You would normally have to show that you have explored every other option to finance your legal fees and that your ex-partner has the means to pay.
There are costs associated with it"
Source:
https://www.moneyadviceservice.org.uk/en/articles/how-to-pay-legal-fees-on-divorce-or-dissolution
Your (male) friend really ought to read all of the relevant links down the left side of that page. There's loads of useful information there.