President Rodrigo Duterte of the Philippines has a reputation for salty language. But at a state dinner in Malaysia on Friday, the leader — who once called President Obama a “son of a whore” — displayed a penchant for sappy melodies and dulcet tones.

On a two-day state visit, Mr. Duterte and Prime Minister Najib Razak of Malaysia found time for a bit of karaoke.

Mr. Duterte crooned Bette Midler’s “Wind Beneath My Wings,” while Mr. Razak sang “The Young Ones” by Cliff Richard and the Shadows.