All Products
Search
Document Center

Object Storage Service:What do I do if garbled characters appear when I preview an object in the TXT format online?

Last Updated:Mar 11, 2024

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

  1. Log on to the OSS console.

  2. In the left-side navigation pane, click Buckets. On the Buckets page, find and click the desired bucket.

  3. In the left-side navigation tree, choose Object Management > Objects.

  4. Find the object for which you want to configure HTTP headers and choose more > Set Object Metadata in the Actions column.

  5. In the Standard HTTP Headers section, set Content-Type to text/plain;charset=utf-8.

  6. Click OK.