You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fair amount of customers adds emojis to their notes, breaking anywhere a address is being saved.
As an aside, would it be a good idea to add a new behaviour so that you can make the emoji cleanup universal for model attributes where users are likely to add emojis?
General error: 1366 Incorrect string value: '\xF0\x9F\x98\x89' for column 'notes' at row 1 The SQL being executed was: UPDATE`craft_commerce_addresses`SET`firstName`='xx', `lastName`='xx', `address1`='xx',
Steps to reproduce
Add emoji to customer notes when saving a address/updating a card
Profit
The text was updated successfully, but these errors were encountered:
@lukeholder Is this an easy fix? I'm seeing a fair amount of customers every day trying this, and my experience from other sites is the same: people like their emojis.
We will be invalidating an address field that has an emoji submitted, and in the case of the address note, we will support converting emojis to shortcodes like we do for lines item notes. Will be in the release out early next week.
Description
A fair amount of customers adds emojis to their notes, breaking anywhere a address is being saved.
As an aside, would it be a good idea to add a new behaviour so that you can make the emoji cleanup universal for model attributes where users are likely to add emojis?
Steps to reproduce
The text was updated successfully, but these errors were encountered: