Skip to main content
Solved

Remove Byte Marks "%EF%BB%BF" added to Formula URL

  • September 24, 2021
  • 7 replies
  • 194 views

Forum|alt.badge.img+6

Hi, I am generating a URL by concatenating a URL string and then the Airtable record ID. Between my URL string and that ID, there is always a byte mark like “%EF%BB%BF” added (for example, when using the URL in an email automation). Any way to remove that since the URL leads to a 404 otherwise?

Best answer by Justin_Barrett

I helped someone else with this exact issue the other day, though the data was different (a number, not a URL):

How are you creating the ID? Your latest example is using a field reference, so my hunch is that this field is likely a formula that uses the RECORD_ID() function. However, this function can be added directly to your other formula:

"URL-String" & RECORD_ID()

If you still get the BOM, you could try wrapping one or both pieces in the TRIM() function, which is supposed to strip whitespace from the ends.

"URL-String" & TRIM(RECORD_ID())

…or…

TRIM("URL-String") & TRIM(RECORD_ID())

7 replies

Forum|alt.badge.img+2
  • Inspiring
  • September 24, 2021

How are you concatinating the the URL string and the record ID? I don’t get a BOM when I concatenate and send that URL in an email. I get som extra text string though. Weird.


Forum|alt.badge.img+6
  • Author
  • Participating Frequently
  • September 24, 2021

I did CONCATENATE(“URL-String”, {Record ID})
Or just “URL-String” & {Record ID}. Both caused the BOM.


Justin_Barrett
Forum|alt.badge.img+21
  • Inspiring
  • Answer
  • September 30, 2021

I helped someone else with this exact issue the other day, though the data was different (a number, not a URL):

How are you creating the ID? Your latest example is using a field reference, so my hunch is that this field is likely a formula that uses the RECORD_ID() function. However, this function can be added directly to your other formula:

"URL-String" & RECORD_ID()

If you still get the BOM, you could try wrapping one or both pieces in the TRIM() function, which is supposed to strip whitespace from the ends.

"URL-String" & TRIM(RECORD_ID())

…or…

TRIM("URL-String") & TRIM(RECORD_ID())

Forum|alt.badge.img+6
  • Author
  • Participating Frequently
  • October 1, 2021

I helped someone else with this exact issue the other day, though the data was different (a number, not a URL):

How are you creating the ID? Your latest example is using a field reference, so my hunch is that this field is likely a formula that uses the RECORD_ID() function. However, this function can be added directly to your other formula:

"URL-String" & RECORD_ID()

If you still get the BOM, you could try wrapping one or both pieces in the TRIM() function, which is supposed to strip whitespace from the ends.

"URL-String" & TRIM(RECORD_ID())

…or…

TRIM("URL-String") & TRIM(RECORD_ID())

That worked, thank you!


Forum|alt.badge.img+2
  • New Participant
  • December 5, 2023

I'm late to the party but I'm dropping this here for anyone else who encounters this problem because I've just struggled with it for a couple of weeks now.

I came across the following on Stack Overflow:

%EF%BB%BF is an percent encoded byte sequence of ZERO WIDTH NON-BREAKING SPACE(aka BOM in UTF-16/UTF-32). In UTF-8, it's just an extra character.


It get's introduced into Airtable automations when copy/pasting from one automation to another by highlighting an entire string of text including the variable, and then pasting that into another automation.

Doing so adds the variable plus a plain text label of the variable on a new line, plus at least one "zero width non-breaking space".

It's easy to delete the plain text label because it's visible, but the "zero width non-breaking space" (i.e. completely invisible UTF-8 character that breaks urls) is, well, invisible and not so easy to find.

It sounds like it might be introduced into other Airtable fields in a similar way.

Just delete the line with the offending url and start fresh without pasting anything and that will resolve the problem by deleting the "zero width non-breaking space" in the process.


Renan_Lobo
Forum|alt.badge.img+4
  • New Participant
  • March 5, 2024

I'm late to the party but I'm dropping this here for anyone else who encounters this problem because I've just struggled with it for a couple of weeks now.

I came across the following on Stack Overflow:

%EF%BB%BF is an percent encoded byte sequence of ZERO WIDTH NON-BREAKING SPACE(aka BOM in UTF-16/UTF-32). In UTF-8, it's just an extra character.


It get's introduced into Airtable automations when copy/pasting from one automation to another by highlighting an entire string of text including the variable, and then pasting that into another automation.

Doing so adds the variable plus a plain text label of the variable on a new line, plus at least one "zero width non-breaking space".

It's easy to delete the plain text label because it's visible, but the "zero width non-breaking space" (i.e. completely invisible UTF-8 character that breaks urls) is, well, invisible and not so easy to find.

It sounds like it might be introduced into other Airtable fields in a similar way.

Just delete the line with the offending url and start fresh without pasting anything and that will resolve the problem by deleting the "zero width non-breaking space" in the process.


That worked, thank you!


Forum|alt.badge.img+4
  • Participating Frequently
  • May 20, 2024

I'm late to the party but I'm dropping this here for anyone else who encounters this problem because I've just struggled with it for a couple of weeks now.

I came across the following on Stack Overflow:

%EF%BB%BF is an percent encoded byte sequence of ZERO WIDTH NON-BREAKING SPACE(aka BOM in UTF-16/UTF-32). In UTF-8, it's just an extra character.


It get's introduced into Airtable automations when copy/pasting from one automation to another by highlighting an entire string of text including the variable, and then pasting that into another automation.

Doing so adds the variable plus a plain text label of the variable on a new line, plus at least one "zero width non-breaking space".

It's easy to delete the plain text label because it's visible, but the "zero width non-breaking space" (i.e. completely invisible UTF-8 character that breaks urls) is, well, invisible and not so easy to find.

It sounds like it might be introduced into other Airtable fields in a similar way.

Just delete the line with the offending url and start fresh without pasting anything and that will resolve the problem by deleting the "zero width non-breaking space" in the process.


Perfect.  I lost a couple of hours to this one.