Guest User

Untitled

a guest
Jul 30th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. Bulk convert cp1252 to utf-8 in Windows
  2. find . -type f -print -exec iconv -f cp1252 -t utf-8 {} > {}.converted ; -exec mv {}.converted {} ;
  3.  
  4. find . -type f -print -exec 'iconv -f cp1252 -t utf-8 {} > {}.converted' ; -exec mv {}.converted {} ;
  5.  
  6. find: `iconv -f cp1252 -t utf-8 ./java/dv/framework/activity/model/ActivitiesMediaViewImpl.java > ./java/dv/framework/activity/model/ActivitiesMediaViewImpl.java.converted': No such file or directory
  7.  
  8. for f in `find . -type f`; do
  9. iconv -f cp1252 -t utf-8 $f > $f.converted
  10. mv $f.converted $f
  11. done
  12.  
  13. find . -type f -print -exec sh -c 'iconv -f cp1252 -t utf-8 {} > {}.converted' ; -exec mv {}.converted {} ;
Add Comment
Please, Sign In to add comment