Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Trying to open certain files with accented characters returns a "file could not be read" error #2869

Open
core-ai-bot opened this issue Aug 29, 2021 · 13 comments

Comments

@core-ai-bot
Copy link
Member

Issue by coltpini
Wednesday Mar 06, 2013 at 01:02 GMT
Originally opened as adobe/brackets#3050


This character caused the error that the file could not be read:
Ð

It was put in a comment, must have come across with a paste somewhere.

just typed this and got the same error:
é

in the test those were the only chars in the document, one at a time.

@core-ai-bot
Copy link
Member Author

Comment by RaymondLim
Wednesday Mar 06, 2013 at 03:33 GMT


@coltpini:

  1. Can you tell us whether it is on Windows or on Mac?
  2. What type of file do you have these characters? html, css or js?
  3. If it is an html page, what encoding do you have? utf-8?
  4. If you can share the file content, can you post it at https://gist.github.com/?

@core-ai-bot
Copy link
Member Author

Comment by coltpini
Wednesday Mar 06, 2013 at 03:46 GMT


This is in a styl (stylus) file on a Mac. I haven't tried it on any other type of file.

I can't post the file, but I did narrow it down to that single character so I could report the error.

I will try it in other file types to see if I run into the same problem.

@core-ai-bot
Copy link
Member Author

Comment by RaymondLim
Wednesday Mar 06, 2013 at 06:30 GMT


I still cannot reproduce it. I created a file with .styl extension, copy stylus code from https://github.com/mastoj/NodeJsExpressFun/blob/master/public/stylesheets/nblog.styl, copy your problematic character from here and paste it into my file, save it and reopen the file. And I don't get any error at all.

So we still need your help to provide the details of the minimal content or steps.

@core-ai-bot
Copy link
Member Author

Comment by njx
Wednesday Mar 06, 2013 at 19:20 GMT


Reviewed. Low priority to@RaymondLim to continue narrowing down with the filer.

@core-ai-bot
Copy link
Member Author

Comment by RaymondLim
Thursday Mar 07, 2013 at 21:37 GMT


@coltpini:
We still need your help to create a file that can be used to reproduce the issue. I had posted my trial on creating a .styl file and copying these characters, but was unable to reproduce the issue on our end. Not sure keyboard layout is important or not. What keyboard layout are you using? After typing these characters and saving the file, do you relaunch Brackets? Or just close the file and reopen it from the project tree?

@core-ai-bot
Copy link
Member Author

Comment by coltpini
Friday Mar 08, 2013 at 00:14 GMT


Great I will send you a file with the isolated character.

Colt Pini
Interaction Designer - Church History
The Church of Jesus Christ of Latter-day Saints
p: 801.240.5833
m: 801.835.9304

“Sometimes you need to fly a kite; in hopes that eventually you'll leave the ground" --

On Mar 7, 2013, at 2:37 PM, Raymond Lim notifications@github.com wrote:

@coltpini:
We still need your help to create a file that can be used to reproduce the issue. I had posted my trial on creating a .styl file and copying these characters, but was unable to reproduce the issue on our end. Not sure keyboard layout is important or not. What keyboard layout are you using? After typing these characters and saving the file, do you relaunch Brackets? Or just close the file and reopen it from the project tree?


Reply to this email directly or view it on GitHub.

@core-ai-bot
Copy link
Member Author

Comment by coltpini
Friday Mar 08, 2013 at 00:48 GMT


ok, so I found out a lot here is a zip file with 4 files.

It looks as though it is not the char alone.
in the zip are 5 files.

  1. strippedOriginal.styl - original file with everything deleted except the
    char. (broken)
  2. test1.styl - original file, deleted the char and replaced with é.
    (broken)
  3. test2.styl - new file created by sublime with é (works)
  4. test3.styl - new file created by brackets with é (works)
  5. test4.styl - original file with an e not é (works)

Open the folder with brackets and click on each file. again I am on a mac
with brackets sprint 21.

@core-ai-bot
Copy link
Member Author

Comment by coltpini
Friday Mar 08, 2013 at 00:55 GMT


created a small repo with the files here: https://github.com/coltpini/issueForBrackets
(looks like it may be a problem for github's editor also)

@core-ai-bot
Copy link
Member Author

Comment by andrewdavidcostello
Monday May 13, 2013 at 12:47 GMT


I also just had this issue when trying to open an XML file:

https://github.com/andrewdavidcostello/bracketsIssues

I am on OSX Mountain Lion 10.8.3

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Friday May 17, 2013 at 22:59 GMT


@coltpini@andrewdavidcostello It sounds like these files may not be UTF-8 encoded. Brackets currently only supports the UTF-8 encoding. We have a user story to support other encodings -- please upvote the story if that turns out to be the problem you're hitting.

@core-ai-bot
Copy link
Member Author

Comment by andrewdavidcostello
Friday May 17, 2013 at 23:18 GMT


@peterflynn That was indeed the issue, thanks for pointing it out. Upvoted.

@core-ai-bot
Copy link
Member Author

Comment by boozedog
Tuesday Dec 31, 2013 at 20:51 GMT


I just ran into this problem myself ... I wonder, can a more informative error message be shown in the meantime?

@core-ai-bot
Copy link
Member Author

Comment by RaymondLim
Thursday Mar 20, 2014 at 22:44 GMT


Closing because this is already in this user story.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant