Skip to content

Instantly share code, notes, and snippets.

@Nill-R
Last active December 31, 2021 07:38
Show Gist options
  • Save Nill-R/71cb8b3dfb30ae53777e3d698a30ca72 to your computer and use it in GitHub Desktop.
Save Nill-R/71cb8b3dfb30ae53777e3d698a30ca72 to your computer and use it in GitHub Desktop.
Convert to utf8
#!/usr/bin/env bash
# https://github.com/nijel/enca
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f | while read file; do enca -L russian -x UTF-8 "$file"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment