Ousted Myanmar leader to appear in court