Encoding error and staff