lat9 / gpsf

An update to the previous Numinix version, now supporting Zen Carts 1.5.6 and above (including 1.5.8a) as well as PHP versions 5.6 through 8.2.
GNU General Public License v2.0
2 stars 2 forks source link

tag <description>: multiple spaces are not removed, truncation of multibyte chars #28

Closed torvista closed 6 months ago

torvista commented 6 months ago

I got an error flagged by Merchant Center for an invalid char. It turned out to be hitting the character limit and the final word "continuación" was being chopped, leaving the "ó" somehow mangled.

This needs the Google limitation to be applied in the code and multibyte to be checked. I saw the same problem in the ZC dashboard where customer names would be truncated without taking mb_ into account.