BERLIN — A three-day state visit to Germany by President Recep Tayyip Erdogan of Turkey was supposed to be aimed at repairing relations at a time of a looming economic crisis at home.

But if Mr. Erdogan was on a charm offensive, Germans seemed to agree that, after just 24 hours in Berlin, it was more offensive than charm.

The first thing the Turkish president did?

Mr. Erdogan apparently flashed a four-fingered Muslim Brotherhood salute in central Berlin and demanded the extradition of 69 Turkish exiles in Germany, among them journalists and lawyers investigating Mr. Erdogan’s government and risking prison at home.

Chancellor Angela Merkel was not impressed.

Standing stiffly next to the Turkish leader at a news conference in Berlin on Friday, she noted “deep-seated differences” between the two countries regarding press freedom and the rule of law, and she insisted that Mr. Erdogan release several political prisoners held in Turkey — including five German citizens.