You are here:  » Remove non-breaking space


Remove non-breaking space

Submitted by sirmanu on Sun, 2020-08-09 09:46 in

Hi David. I have a merchant which usually insert this char. I don't know why.

This problem is difficult to spot, because the char is invisible. I only see on URL.

For instance, this product:

"Elite MaxiCorsa (950 ml)"

That URL get translated into

"elite-maxicorsa-950%C2%A0ml.html"

Do you know how can I get rid off that on import? What I want to do is translate that char into a normal space, so the URL it is as expeceted.

Thanks!

Submitted by support on Mon, 2020-08-10 07:38

Hi,

There's code for a Search and Replace HEX filter in this comment, and with that in place you can then add the filter to the Product Name field for this feed and use the characters of the non-breaking space as the Search value:

C2A0

...and replace with a normal SPACE...

Cheers,
David.
--
PriceTapestry.com

Submitted by sirmanu on Tue, 2020-08-11 23:04

Hi David. Sorry for late response. I have waited until next import and I can confirm that is working perfectly.
Thank you again for your best support!