October 2011
1 post
Dealing with cyrillic comments in your code with...
So you inherit some code from a russian predecessor who was coding in Windows. Predictably, the comments are in russian, and the encoding is CP-1251 (or koi-8, who knows). Here’s what you do:
mkdir conv
find . -type f -name '*.php' -exec bash -c 'iconv -f windows-1251 -t utf-8 "{}" > ./conv/"{}"' \;
view gist
then just copy the files from the new ./conv/ directory into their proper...