Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Garbled names (mojibake) in form emails and CRM: how to fix it

DLV-233Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Computers store text as bytes. An encoding is the rule that maps bytes to characters. UTF-8 is the standard that covers every language. Mojibake (Japanese for 'character change') appears when text saved as UTF-8 is read as an older encoding such as Latin-1 (ISO-8859-1) or Windows-1252.

Typical symptoms: José becomes José, Zoë becomes Zoë, and Polish or Greek names turn into question marks or empty boxes. It can happen in the notification email, in the CRM record, in a spreadsheet export, or in the database behind the form.

Why it costs you leads or sales

A garbled name looks careless in your first reply and makes a prospect doubt you. It also breaks matching: the CRM may create duplicates, merge contacts wrongly, or fail to find an existing customer. Email personalisation like 'Hi José' goes out broken. Characters replaced with ? are lost for good, so the original cannot be recovered later.

Where a name can get garbled
  1. Visitor types JoséBrowser sends UTF-8
  2. Form handlerReceives and stores the value
  3. Database or email buildCharset is Latin-1, so bytes are misread
  4. Notification emailShows José
  5. CRM recordStores the garbled name

The break happens at one hop. Everything after it inherits the damage.

How to check if your site has it

Test with real non-ASCII characters
  1. Prepare a test string

    Use a name such as José Müller Zoë Łukasz Ωmega 山田. It covers accents, umlauts, Polish and Greek letters and CJK characters.

  2. Submit your live form

    Use a test email address you control. Mark it as a test so your team knows to ignore it.

  3. Check the notification email

    Look at the body and the subject line. Subjects are encoded separately and often break on their own.

  4. Check the CRM record

    Open the new contact and compare the name with what you typed.

  5. Check any export

    Export to CSV and open it in Excel and Google Sheets. Excel often misreads UTF-8 CSV files without a byte order mark, which is a separate display issue from a true data fault.

How to fix it

The fix is always the same principle: use UTF-8 at every step and declare it. The settings differ by platform.

Set UTF-8 by platform
  1. Check the database charset

    In wp-config.php, make sure define('DB_CHARSET', 'utf8mb4'); is set. If the tables are still latin1, convert them with a backup first.

  2. Check the email plugin

    In your SMTP or form plugin settings, make sure the email content type and charset are UTF-8. Send a test from the plugin's own test tool.

  3. Test without extra plugins

    If an email or CRM add-on garbles names, disable it briefly on a staging copy to confirm it is the cause.

UTF-8 email in PHPphp
$subject = mb_encode_mimeheader('New lead: ' . $name, 'UTF-8');
$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
mail($to, $subject, $body, $headers);
Lead name arriving in the inbox

Mixed encodings

  • Name shows as José
  • Subject line shows =?ISO-8859-1?...
  • CRM holds the garbled value

UTF-8 end to end

  • Name shows as José
  • Subject renders correctly
  • CRM matches what the visitor typed

How to confirm it's fixed

Confirmation checklist
  • Resubmit the test string and compare every character in the email body.
  • Check the email subject line too.
  • Open the CRM contact and confirm the name matches exactly.
  • Test in at least two mail clients, such as Gmail and Outlook.
  • Export a CSV and open it in a UTF-8 aware tool.
  • Delete the test contact so it does not pollute your lists.

How to prevent it happening again

Most mojibake returns after a change: a new SMTP plugin, a CRM migration, a host move or a new automation step. Make non-ASCII test data part of every change you make to the lead path.

Prevention habits
  • Use utf8mb4 for new databases and tables.
  • Always declare the charset in HTML, HTTP headers and email headers.
  • Add one non-ASCII test lead to your release checklist.
  • Re-test after changing hosting, SMTP provider, CRM or automation tools.
  • Prefer JSON over hand-built text when passing data between systems.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. Its robot visitor submits your form on a schedule and checks that the test lead reaches the inbox and CRM. The email content check on all fields flags garbled characters if they appear in the delivered message.

The limit: the test data FunnelGuard submits is ASCII. Plain ASCII text survives most encoding mistakes, so a setup that breaks only on characters like é, ü or 山 can pass the check. FunnelGuard therefore does not prove that real non-English names are safe.

Questions people ask

Why does José show up as José in my email?

The email contains UTF-8 text but is being read as Latin-1 or Windows-1252. Declare charset=UTF-8 in the email's Content-Type header and make sure the plugin or mail server does not convert it.

What is mojibake?

Mojibake is garbled text caused by decoding characters with the wrong encoding. It typically turns accented letters into strings like é or ü. The original data is often still intact if the text was only displayed wrongly.

Why do special characters turn into question marks in my CRM?

A question mark usually means a step converted the text to an encoding that cannot represent the character, such as latin1, and replaced it. That data is lost. Fix the encoding at that step, then ask the visitor to resubmit or correct the records by hand.

How do I fix garbled characters in WordPress form emails?

Check that DB_CHARSET is utf8mb4 in wp-config.php and that your SMTP or form plugin sends emails as UTF-8. Then submit a test with accented characters and check the body and the subject line.

Why is only the email subject garbled?

Subjects are encoded separately from the body. If the subject is not encoded per RFC 2047 with a UTF-8 charset, many clients show garbled characters even when the body is fine. Use your mail library's subject encoding function.

Why do accents break only when I open a CSV in Excel?

Excel often assumes a legacy encoding for CSV files without a byte order mark. Import the file using the Data tab and choose UTF-8, or save the export as UTF-8 with BOM. Your CRM data may be fine.

Can automated monitoring catch garbled names?

Partly. FunnelGuard flags garbled characters in the delivered email, but its test data is ASCII, so encoding faults that only affect non-English characters can slip through. A manual test with accented names covers that gap.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: email_content all_fields flags garbled characters; test data is ASCII.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.