Why a quote mark can stop an enquiry reaching your CRM

A quote mark or line break in a form message can break a hand-typed JSON webhook. Why it happens, and what curly quotes, emojis and field limits do.

Many webhooks and CRM APIs pass data around as JSON, a block of text where every value sits between straight double quote marks: "message": "Need 40 lengths of pipe". Send a form enquiry that way, through Zapier, Make or a developer's webhook, and a straight quote mark or a line break in the customer's message can leave the CRM unable to tell where the message stops. It refuses the whole request. The customer has already seen the thank-you page, so as far as they're concerned the enquiry went in.

JSON can carry any Unicode character, emojis and curly quotes included, and every proper JSON tool knows how to write the awkward ones safely. Quote marks only cause trouble when a person has typed the JSON by hand and dropped the customer's message into the middle of it. They aren't the only characters that can go wrong between the form and the CRM, though. Curly apostrophes, emojis and long messages each cause a different fault, and some of those faults never raise an error at all.

Where the quote mark does its damage

The JSON standard, RFC 8259, allows any Unicode character inside a string except three kinds that must be escaped: the straight double quote, the backslash and the control characters, which include the line break. Escaping means writing them in a form the receiving system won't mistake for the end of the text, so a quote mark inside a message becomes \" and a line break becomes \n.

Automation tools give you two ways to build a request. In Zapier, the POST and PUT actions take your fields one by one and build the JSON for you. The Custom Request action lets you type the body yourself. Zapier's own help page describes it as "much less forgiving" and says the data "will be sent exactly as entered". Make is the same: its JSON module builds the body for you, while a raw body with fields mapped into it doesn't. A hand-typed body looks perfectly reasonable when you write it, something like {"name": "{{name}}", "message": "{{message}}"}, with the form's fields dropped in where the curly brackets are.

Now say a plumbing contractor fills in your quote form (a hypothetical one) and asks for 40 lengths of 22mm "push-fit" pipe, then presses Enter and adds a line about delivery. The template drops that text straight in. The quote mark before push-fit closes the message early, the rest of the sentence sits outside any string, and the raw line break is a character JSON doesn't allow there at all. The CRM's API reads the first few words, hits something it can't parse and rejects the request.

Diagram comparing a hand-typed JSON template, where the customer's quote marks and line break end up raw in the request and the CRM rejects it, with a JSON module that escapes them so the enquiry is created intact

The awkward part is that it passes testing. A test enquiry with a short message goes through fine, and so does every customer who writes one plain line. It fails for the customer who quotes a product name, gives a size in inches (a 4" soil pipe is a perfectly normal thing for a trade buyer to type) or sets out their requirements over a few lines. Those are the detailed enquiries, which are the ones you'd least like to lose.

Curly quotes fail more quietly

A curly quote or apostrophe (’ “ ”) is an ordinary Unicode character. JSON doesn't need it escaped, and the same hand-typed template that fails on "push-fit" parses fine with We’re in the message.

Curly quotes cause a different problem, which is garbling. Text pasted from a document or an email can carry them in, and on the way through each one is stored as three bytes of UTF-8. The JSON standard says JSON passed between systems that aren't part of a closed setup must be UTF-8. If any step in the chain reads those bytes as an older encoding such as Windows-1252, the apostrophe comes out the other side as three characters: We’re turns into We’re.

Nothing fails, so nobody gets an error. The rep just sees a slightly mangled message. It matters more when it hits a name field. A customer called O’Neill can end up stored as O’Neill, and that can become the version your duplicate check compares against when they next get in touch.

Emojis and an old database table

Emojis such as 👍 sit outside what Unicode calls the Basic Multilingual Plane, and in UTF-8 they take four bytes. JSON carries them fine; where it can go wrong is the database the enquiry is saved in. A thumbs-up at the end of "Thanks, speak soon 👍" is a very ordinary thing to type on a phone, so this is worth checking on any route that stores entries before passing them on.

Some routes save the enquiry to the website's own database before anything is sent on, through a form plugin or a developer's custom table. MySQL has two UTF-8 character sets, and the older one, utf8mb3, holds a maximum of three bytes per character. MySQL's manual says that for a four-byte character, utf8mb3 "cannot store the character at all". What happens next depends on how that database and plugin are set up, so it needs testing on the real route instead of assuming. Tables created with utf8mb4 don't have this limit.

Three ways to count the same message

The last fault is length, and it's awkward because the same message has a different length depending on what is counting it. That thumbs-up emoji is one character to the person who typed it. To JavaScript, it's two, because JavaScript measures strings in UTF-16 code units and an emoji like this needs a pair of them; Mozilla's documentation shows an emoji with a length of 2. In UTF-8 bytes, it's four. A character counter on the form, a limit in a code step and a field limit in the CRM can all be measuring different things.

The field limits themselves vary more than people expect. HubSpot documents a 65,536-character limit for text properties when the value is added through the CRM, and no limit when the value comes in through a HubSpot form. Salesforce's basic text field holds a single line of up to 255 characters. Map a detailed enquiry into a field like that and it won't fit: either the record is refused or the message is trimmed, and which one you get depends on how the integration was built. A trimmed message is arguably worse, because it looks complete. The rep reads half a specification and quotes for it.

What fixing it involves

The first job is finding out which of these faults a route actually has. That means sending it an enquiry written to trip every one of them and comparing what lands in the CRM with what was typed, along with the run history in Zapier or Make for anything that failed on the way. Guessing from the setup screen doesn't tell you much, because a hand-typed body and a properly built one can look almost identical.

Each fault has a contained repair. A hand-typed body gets rebuilt so the tool or a proper serialiser does the escaping. A table that can't hold four-byte characters gets converted. A message squeezed into a single-line field gets a field big enough for it. And failed runs need to reach a person who'll act on them, because escaping fixes this cause and leaves every other reason a CRM might refuse a record untouched, from a missing required field to a phone number in the wrong format. We've covered that wider problem in why a form can show a thank-you message when the enquiry never arrives, and the question of alerts in whether to replace Zapier with custom code or add error alerts.

One thing we wouldn't do is strip the characters out of the message to make the error go away. A 4" pipe and a 4 pipe are different orders, and the customer's wording is part of the enquiry. Checking where your enquiries go missing is part of our lead and enquiry tracking work, and fixing the route itself sits under data integration. When it's done, your rep opens the enquiry and the quote marks, line breaks and thumbs-up are all still there.

Frequently asked questions

Do emojis break webhooks?

Only in particular setups. The JSON standard allows any Unicode character inside a string, and a properly built request carries an emoji without trouble. Where an emoji can cause damage is storage: a MySQL table using the older utf8mb3 character set can't hold four-byte characters such as 👍 at all.

Why does our CRM show ’ where there should be an apostrophe?

That's a curly apostrophe written as UTF-8 and read back by something expecting a different encoding, such as Windows-1252. The three bytes of the apostrophe are shown as three separate characters. That step needs finding, because the same fault will mangle customer names as well as messages.

Should we strip special characters from form messages before sending them?

We'd advise against it. Removing quote marks and line breaks makes the error go away while the template stays broken, and it changes what the customer asked for: an inch mark on a pipe size carries meaning. Escape the text properly when the request is built and the customer's message can stay exactly as written.

Does Zapier escape JSON automatically?

It depends which action you use. Zapier's POST and PUT actions build the request from your fields, so the escaping is handled for you. The Custom Request action sends the body you type "exactly as entered", so any customer text mapped into it goes in raw, and Zapier recommends checking the syntax with a JSON validator.