Get the id of multiple inserted/updated rows
I could try to get the ids out like this:
  
  SELECT id, tail FROM tails WHERE tail IN ('Hello', 'cafe', 'Café')


Do

SELECT tails.id, tails.tail, criteria.pos
FROM tails 
JOIN ( SELECT 1 pos, 'Hello' tail UNION ALL
       SELECT 2,     'cafe'       UNION ALL
       SELECT 3,     'Café' ) criteria ON tails.tail = criteria.tail


and no problems with identifying (you know what pos to what tail was assigned).