Countries with plenty of reserves, such as China or India, could allow mutual funds (domestic or foreign) to issue shares in domestic currency with which they could buy foreign exchange from the central bank.
But most of the investors choosing emerging market debt are buying bond funds with local currency debt, rather than buying the sovereign or quasi-sovereign dollar denominated bonds that foreign countries like Brazil also issue.