New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 596037 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Last visit 29 days ago
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Character encoding not detected when opening / not respected when saving in files added to Workspace (developer tools)

Reported by pere.pas...@gmail.com, Mar 18 2016

Issue description

Chrome Version       : 49.0.2623.87 m
URLs (if applicable) :
Other browsers tested: doesn't apply
have tested this issue:
     Safari: -
    Firefox: -
         IE: -

What steps will reproduce the problem?
(1) Add js file to workspace, with ISO-8859-1 encoding
(2) Make some changes
(3) Save the file

What is the expected result?

The expected result is the original file with the new added content, without changes to the existing content.

What happens instead?

New content is saved, but the original file encoding is not preserved, thus garbling whatever non-standard ASCII characters the original file could had - accents, opening question marks, and that all.

I'm attaching a triple-screenshot with the file opened without modification, displaying the wrong decoding of accents, the same file with "special" characters added inside the developer tools editor itself, then saved, and then opened in my IDE of choice (Netbeans), which has the project configured as ISO-8859-1 as their encoding for source files, displaying the accents and special characters as totally garbled.

Developer tools workspace should detect (and respect) proper encoding of files and/or have an option for selecting it manually.
 
3screenshotscompo.png
471 KB View Download

Comment 1 Deleted

By the way, I reported this ALMOST a year ago... The problem is I did in the V8 project (https://bugs.chromium.org/p/v8/issues/detail?id=4070) and it went unnoticed... ONE YEAR and this bug persist, plus noone moved it to the proper project issue tracker...
Labels: Te-NeedsFurtherTriage
Components: Platform>DevTools
Labels: -Te-NeedsFurtherTriage Needs-Feedback
This bug went untouched because it was closed and was requested to create a new bug and file it under devtools (as you did here).

I believe we do everything in devtools as UTF8 and if you are using latin1 there is a conflict of multi-byte and single-byte encoding. It would be extremely useful for us if you supplied a sample file for us to test with. We may be able to handle it better, but we'll need a real test case.
Owner: lushnikov@chromium.org
Status: Assigned (was: Unconfirmed)
Created testcase (see attached files):
 - bug-exist.png;
 - bug-no-exist.png;
 - model.json;
 - testcase.txt;
bug-exist.png
117 KB View Download
bug-no-exist.png
120 KB View Download
model.json
88 bytes View Download
testcase.txt
524 bytes View Download

Comment 8 Deleted

For "Comment 7" - fixed:
1) "Settings >> Show advanced settings >> Web content >> Customize fonts >> Encoding" = Unicode (UTF-8);
2) "More tools >> Encoding" = Unicode (UTF-8);

W3C recomendation:
"Choose UTF-8 for all content and consider converting any content in legacy encodings to UTF-8." - https://www.w3.org/International/questions/qa-choosing-encodings
Status: Archived (was: Assigned)
We didn't include this in our plans for the upcoming year. If you think this is important, please re-file with justification.

Thanks.

Comment 11 by a...@rayven.io, Jan 8 2018

For me, Chrome is saving as "Hebrew (Windows)" when the original file is "Unicode (UTF-8) with signature"

Sign in to add a comment