I'm trying to make some scraping with a players game data. The script is working just fine for common character (a-Z, etc) but give me an error on imwrite() for special character nickname:
root = saveroot +"ocrdata/"+ playername + "-" + imgtype + ".png"
cv2.imwrite(root, var)
when an imput on the variable player name as this enter:
甜 Player
The script return an error as this:
FileNotFoundError: [Errno 2] No such file or directory: 'C:/..../ocrdata/甜 Player-id.png'
any clue ?