There is no problem in placing the corpse in a coffin when burying him in the ground. However, the religious requirements of burial must be fulfilled.
If the deceased has no heir or the heir is refusing to fulfill his duty or is not capable, it is obligatory, on the basis of kifã’i, upon other Muslims [to bury the deceased in an appropriate…
It is not permissible to bury a Muslim in cemeteries of non-Muslims, except if that is only out of absolute necessity.