batch file - cannot replace this character from a variable -


i trying remove special characters filenames

set "filename=%filename:’='%" 

this works command line not script.

just finish up, here's answer.


change codepage more supported codepage, such unicode utf-8. corresponding codepage id 65001. change this, add:

chcp 65001 

you can add snippet anywhere before set statement.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -