MADRID (AP) — Spain's Prime Minister Mariano Rajoy says he expects a "new era based on dialogue" will open in Catalonia.