Skip to content

Open .lsp files using windows1252 charset #240

Description

@ext-pierre-etchemaite

I had character set issues opening .lsp files from a non-english project, that displays correctly in VLIDE (and prompts display correctly in AutoCAD console too, of course).
After some investigation, it seems the encoding used by those files, seldom mentionned as being "ANSI", is actually Windows 1252 encoding; And after some more investigation, I managed to make VS Code load those files correctly with some extra settings:

...
    "[autolisp]":  {
       "files.encoding": "windows1252"
    }
...

If my analysis is correct, and if it doesn't break anything, could the extension do that by default? Or at least document the problem and this possible solution.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions