Why Do My Log Files Show Weird Characters in the Browser?
If you’ve downloaded one of Matador’s log files and opened it in your text editor of choice, it probably looks fine. But if you try to open it directly in your web browser, you might see strange characters like this:

✅ The Problem: Web Browsers Don’t Know the Encoding
Web browsers rely on the web server to tell them how to display the contents of a .txt file. If the server doesn’t say, “Hey, this is UTF-8!” — the browser guesses… and often guesses wrong.
This can cause special characters (like é, ñ, €, or smart quotes) to show up as gibberish.
🛠️ The Fix: Tell the Server to Use UTF-8 for .txt Files
You’ll need to make a small change to the server configuration so that all .txt files are now served with the correct encoding. If you consider yourself non-technical, then it’s probably best to ask your hosting provider for support on this one.
For Apache, add the following to your .htaccess file:
<IfModule mod_mime.c>
AddType 'text/plain; charset=UTF-8' .txt
</IfModule>
For Nginx, add the following to the server block in your config file
charset utf-8;
types {
text/plain txt;
}
This means:
- ✅ Special characters will display correctly in Chrome, Firefox, Safari, etc.
- ✅ You don’t need to download the file to view it cleanly.
- ✅ No change is needed in the plugin or WordPress settings.
📄 What If You Still See Weird Characters?
If the issue persists after this fix:
- Try refreshing the page (Ctrl+Shift+R or Cmd+Shift+R)
- Clear your browser’s cache
- Contact your hosting provider for support
- Or simply download the file and open it in a proper text editor