import re # Read file with open('assets/js/app.js', 'r', encoding='utf-8') as f: content = f.read() # Map of replacements replacements = { # Icons in toasts and popups 'âœ"': '✓', '✕': '✕', 'ℹ': 'ⓘ', 'âš ': '⚠', 'ðŸ"': '📍', '🛣ï¸': '🛣️', '⬠': '⬜', 'ðŸ'¤': '👥', 'ðŸ—'': '🗑️', '🕌': '🏢', 'ðŸ\"¡': '📍', 'â€"': '–', '’': "'", '©': '©', '²': '²', 'â³': '⏳', } # Apply replacements for old, new in replacements.items(): content = content.replace(old, new) # Write back with open('assets/js/app.js', 'w', encoding='utf-8') as f: f.write(content) print("✓ File app.js berhasil diperbaiki!")