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);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e50f95-450fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e50f95-450fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?