-
-
Notifications
You must be signed in to change notification settings - Fork 106
Why only show ASCII characters in preview, not all UTF-8? #174
Copy link
Copy link
Open
Description
When previewing text files, I noticed that non-ASCII Unicode characters (such as emoji or languages other than English) are not displayed, only ASCII is shown. Looking at the code, it seems the preview logic previously used a function to filter out non-ASCII characters.
Line 910 in c78d211
| previewContent := leaveOnlyAscii(content) |
I have many files contain UTF-8 characters. I have tried to edit this code to show all UTF-8, then in my simple tests all preview of UTF-8 content look good. Maybe my tests are limited.
Is there a specific reason for this design? Thanks for your explanation!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels