Malaysia's prime minister has ordered the navy and coast guard to search for stranded Rohingya migrants in the Andaman Sea, a day after Kuala Lumpur and Jakarta agreed to take boatloads of desperate refugees who have been in limbo for weeks since fleeing persecution in Myanmar.

On Twitter, Malaysian Prime Minister Najib Razak said he had ordered the navy and coast guard "to conduct search and rescue efforts (for) Rohingya boats. We have to prevent loss of life," according to an Associated Press translation of the tweet written in Bahasa.

The thousands of mostly Muslim refugees – many of whom have been adrift for weeks – have been denied access to land in Buddhist majority Thailand, but were also initially rejected by predominately Islamic Malaysia and Indonesia.

The move goes a step further than simply allowing the migrants to make landfall and instead initiates a rescue of them from rickety and mostly unseaworthy boats, where they have little food or fresh water.

Meanwhile, the AP reports that Myanmar has said it will attend a regional meeting in Bangkok next Friday to discuss the a long-term solution to the problem. "Earlier, it hinted it would skip the meeting, which will bring together more than a dozen governments from the region and beyond," the news agency says.

Copyright 2016 NPR. To see more, visit