Ok I fix it!
buf.setData(content.toAscii().data(),strlen(content.toAscii().data()));Thank!