logo
search
SharePoint Document Issues

How to Fix Special Characters Missing in SharePoint HTML Previews

Amos GikundaAmos Gikunda Oct 10, 2026 869 views

Question details

Users need to resolve an issue where special characters do not display correctly in SharePoint Online document previews.

How to Fix Special Characters Missing in SharePoint HTML Previews
Product
SharePoint Online
Device & OS
not provided
Scenario
Viewing previews of uploaded HTML files in a SharePoint Online document library.
Observed behavior
Special characters, accented text, and superscript characters display as unreadable replacement symbols in the preview pane, even though the files render perfectly after being downloaded.
Before you start

Download the affected HTML file and open it locally in a web browser to confirm that the special characters render correctly before attempting to troubleshoot the SharePoint preview engine.

Solution 1Recommended

Verify and Update HTML Character Encoding

Ensure the HTML file explicitly declares UTF-8 encoding so SharePoint's preview engine can interpret special characters correctly.

SharePoint's online previewer relies on meta tags to determine how to render text. If the charset is missing, the preview engine defaults to standard ASCII, which corrupts special symbols.

1
Open the HTML file locally

Right-click your HTML file on your computer and open it with a text editor like Notepad or a code editor.

2
Add the charset meta tag

Locate the <head> section of your HTML document and add <meta charset="UTF-8"> right below it.

3
Save the file with UTF-8 encoding

Click File > Save As, and ensure the 'Encoding' dropdown at the bottom of the save dialog is set to 'UTF-8' before saving.

4
Re-upload to SharePoint

Upload the newly saved file to your SharePoint document library and click on it to test the preview.

Verify and Update HTML Character Encoding
Free Microsoft Office alternative

View and Edit Documents Locally with WPS Office

Avoid online rendering bugs and browser-based preview errors by managing your documents locally with WPS Office. As a free and lightweight alternative to Microsoft Office, it provides a stable environment for editing and viewing all your important files.

  1. 1. Download and Install: Visit the official WPS website, download the free desktop application, and follow the installation prompts.
  2. 2. Launch WPS Office: Open the application to access the all-in-one workspace for documents, spreadsheets, and presentations.
  3. 3. Open Your Files: Click 'Open' and select your downloaded documents to view and edit them locally, bypassing any online server rendering issues.
Completely free, lightweight, and user-friendly interfaceHigh format compatibility with Microsoft Office files (Word, Excel, PowerPoint)Open and edit web documents locally without online preview encoding errorsSeamless migration from Microsoft Office for daily document tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why do special characters turn into question marks or boxes in SharePoint?

This usually happens when the character encoding of the file (such as UTF-8) is not properly declared or recognized. As a result, the SharePoint preview engine misinterprets the data, substituting unrecognized characters with default symbols.

Does this preview issue affect the actual content of my uploaded files?

No, your original file remains perfectly intact on the server. The issue is strictly related to how SharePoint renders the document preview in your web browser. Downloading the file will show all special characters correctly.

What is a HAR log and why does Microsoft Support need it?

A HAR (HTTP Archive) log records the interactions between your web browser and the website. Support teams use it to track network requests and pinpoint exactly where the SharePoint preview rendering process is failing.