question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to open '<filename>': Unknown encoding: iso88591.

See original GitHub issue
  • code-server version: code-server-1.32.0-310-linux-x64
  • OS Version: Ubuntu 16.04.6 LTS

Description

Changing encoding for a single file using UI to iso88591 (by clicking on encoding in right bottom corner and choosing “reopen with…”) works fine. However when i try to set default encoding for all files in settings

Files: Encoding The default character set encoding to use when reading and writing files. This setting can also be configured per language.

then i get this error message when i try to switch back to any opened file:

Unable to open '<filename>': Unknown encoding: iso88591.

The only way to fix this is to set it back to utf-8.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nol166commented, Mar 26, 2019

I also tried locally in native VSCode and it seemed to revert the encoding to UTF8

0reactions
code-ashercommented, Sep 18, 2019

I tested this out in v2 and it appears to work. 🎊

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unknown Encoding · Issue #153 · Toblerity/Fiona - GitHub
The original file opens just fine with fiona---it is given the encoding 'iso-8859-1' . If I try to open the converted file, its...
Read more >
Unable to open XML file with ISO-8859-1 encoder
Unable to open XML file with ISO-8859-1 encoder · 1.Click Start, and then click Run. · 2.In the Open text box, type cmd,...
Read more >
List of encodings that Node.js supports - Stack Overflow
However, Node complains about "latin1" or "ISO-8859-1" not being a valid encoding ("Error: Unknown encoding"). What encodings does readFileSync accept? node.js.
Read more >
iso-8895-1 error - Google Groups
(filename,mode,charset,errors) File "/usr/lib/python2.5/codecs.py", line 820, in open info = lookup(encoding) LookupError: unknown encoding: iso-8895-1
Read more >
Problem with reading text file encoded in Western encoding ...
To do this, open gedit, select "Open" option and find the neeeded file. Then choose the character encoding (bottom left side) and pick...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found