|
<< Click to Display Table of Contents >> Navigation: Telegram > 2024 > 01 > 21 > Telegram_2024-01-21T13 |
2024-01-21T13:19:39
It is not safe to store unicode in cookies.
If you want to store anything like that, encode it to base64 first. You can use Delphi built-in TNetEncoding class or IntraWeb own methods:
uses
IW.Common.Strings;
encodedCookieValue := TBase64Encoder.EncodeBase64(yourCookieWithUnicode);
then you decode it when you want to read:
decodedCookieValue := TBase64Encoder.DecodeBase64(cookieValue);