charSet variable is used by Adobe to convert incoming data into UTF-8 for storage and reporting by Analytics. Most sites do not need to set this variable.
Set this variable only if you see garbled values (mojibake) in reports. You can set this variable on a page-by-page basis if your site uses different encodings on different pages.
The Web SDK currently supports only UTF-8, and does not provide options to change encoding.
Character Set is a field under the General accordion when configuring the Adobe Analytics extension in Adobe Experience Platform Data Collection.
You can use either a preset character set or a custom character set. Avoid changing the value from
UTF-8 unless you see garbled values in reports.
charSet variable is a string. If you have garbled values in Adobe Analytics, set this variable to the same value as the
<meta charset=""> HTML tag on your site.
s.charSet = "UTF-8";