Language:
Free Online Dictionary|3Dict

轉敗為功

Source : CEDICT

to turn failure into success (idiom)