This topic describes the cause of and solution to garbled characters when you preview an object in the TXT format in the Object Storage Service (OSS) console.
Cause
The object is incorrectly encoded.
Solution
Log on to the OSS console.
In the left-side navigation pane, click Buckets. On the Buckets page, find and click the desired bucket.
In the left-side navigation tree, choose
.Find the object for which you want to configure HTTP headers and choose
in the Actions column.In the Standard HTTP Headers section, set Content-Type to text/plain;charset=utf-8.
Click OK.