Last active
September 13, 2022 19:15
-
-
Save AhmedHelalAhmed/fd22f722c8b657686862163a78382ba7 to your computer and use it in GitHub Desktop.
strange-arabic-words.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
file="result.txt" | |
while read -r line; do | |
#echo -e "$line\n" | |
iconv -fwindows-1256 -tutf8 "$line" > "$line"'_fixed' | |
done <$file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// iconv -fwindows-1256 -tutf8 test | |
// find . -type f | egrep "[.]srt" >> result.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TEXT in Arabic showing wrong characters instead