{"section":"tutorials","requestedLocale":"en","requestedSlug":"why-dont-cookies-support-special-characters","locale":"en","slug":"why-dont-cookies-support-special-characters","path":"docs/en/tutorials/projects-and-integrations/why-dont-cookies-support-special-characters.md","branch":"main","content":"According to the standards of the Internet Engineering Task Force (IETF), the institution responsible for documenting standards used on the Internet, cookies cannot have special characters in their composition, including non-ASCII characters.\n\nThis standard is included  in the Requests For Comments (RFC) - technical documents periodically updated by the IETF itself. To learn more, [read IEFT's article about allowed characters in headers and cookies](https://tools.ietf.org/html/rfc7230#section-3.2.6).\n\nThis pattern is adopted by most digital products and services on the market, including the VTEX platform.\n\nAs a result, the use of special characters in the creation of cookies can generate some bugs in the operation of a store.\n\nWe select two possible scenarios:\n\n## Examples\n\n### Google Analytics vs. UTM\n\nOne way to create an invalid cookie is through the use of UTMs with special characters. \nLet's say you create an UTM that contain an apostrophe, like \n`www.site.com?utm_source=mother's-day`.\n\nIn this case, the hyperlink will not be properly captured by Google Analytics, which generates an invalid cookie. This directly affects the functioning of the store since there is no way for the retailer to delete the user's cookies.\n\nThis information is stored in the browser until the user deletes it or the cookie expires - according to the expiration date expressed by the cookie creator.\n\n### Customized Javascripts\n\nMany front-end implementations creates cookies through Javascript to store data with a variety of purposes.\n\nIt is key that both the validation and encoding of data are part of this routine in order to avoid creating invalid cookies that hamper browsing the store.\n\nBut it's important to note that in addition to offering risks like this, the creation of cookies can also interfere with the store in other ways."}