Skip to content

JSON messages going to LS have URIs with non-ASCII chars #358

Closed

Description

@BoykoAlex

A URI to a file named: ClassWithSpécialCharacter.java (note non-ASCII é in the name) in its string form in the JSON still looks the same without é escaped. VSCode LSP client sends this url with file name that looks like: ClassWithSp%C3%A9cialCharacter.java which is correct. URIs with unicode chars are illegal... The issue I have faced is Paths(URI.create(uriStr)) throws java.lang.IllegalArgumentException: Bad escape

Test project with such file: https://github.com/spring-projects/sts4/tree/main/headless-services/spring-boot-language-server/src/test/resources/test-projects/test-annotation-indexing-parent/test-annotation-indexing%20with%20space

Activity

  1. BoykoAlex commented on Jan 19, 2023

    @BoykoAlex
    ContributorAuthor

    Should be fixed now. Will see if lsp4j will have anything in addition via eclipse-lsp4j/lsp4j#692

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