Formdata uploaded file carrying Chinese characters is gbk code, how to convert node server into Chinese characters

formdata uploaded files carry parameters with Chinese characters, the encoding format is gbk, and the server uses koa2+koa-router+koa-formidable to receive files

the result of using iconv-lite,encoding" is still incorrect

related codes

clipboard.png

    const {id,title,time,singer} = ctx.request.body
    console.log(id,iconv.title,time,singer)// 123 %E5%8E%BB%E7%8E%A9%E5%84%BF%E5%8E%BB%E7%8E%A9%E5%84%BF 234 234345
    console.log(encoding.convert(new Buffer(title), "utf-8", "gbk").toString())````


-sharp-sharp-sharp 
Jul.09,2021

without this step?

let k = `%E5%8E%BB%E7%8E%A9%E5%84%BF%E5%8E%BB%E7%8E%A9%E5%84%BF`;
let d = decodeURIComponent(k);
Menu