답변 3개
채택된 답변
+20 포인트
다음과 같이 하시면 될 것 같습니다.
iconv 명령 사용 (Linux/macOS):
Copy
find . -type f -name "*.php" -exec iconv -f ISO-8859-1 -t UTF-8 -o {} {} \;
PowerShell 스크립트 사용 (Windows):
Copy
Get-ChildItem -Filter *.php | ForEach-Object {
$content = Get-Content $_ -Encoding Default
Set-Content $_ -Value $content -Encoding UTF8
}
답변을 작성하려면 로그인이 필요합니다.