File manager - Edit - /home/webapp69.cm.in.th/u69319090033/Shop/myshop ใหม่/tools_backup/analyze_mojibake.php
Back
<?php // Analyze all non-ASCII content in app.js line by line $lines = file('app.js'); $results = []; foreach ($lines as $i => $line) { $lineNum = $i + 1; // Check if line has non-ASCII characters if (preg_match('/[^\x00-\x7F]/', $line)) { // Get the non-ASCII parts preg_match_all('/[^\x00-\x7F]+/', $line, $matches); $nonAscii = implode(' | ', $matches[0]); $hex = bin2hex($line); $results[] = [ 'line' => $lineNum, 'nonAscii' => $nonAscii, 'hex' => $hex, 'content' => trim($line) ]; } } echo "=== Lines with non-ASCII content ===\n"; foreach ($results as $r) { echo "\n--- Line {$r['line']} ---\n"; echo "Content: {$r['content']}\n"; echo "Non-ASCII parts: {$r['nonAscii']}\n"; echo "Full line hex: {$r['hex']}\n"; } echo "\nTotal: " . count($results) . " lines with non-ASCII\n";
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.63 |
proxy
|
phpinfo
|
Settings