Skip to content

JSON Parse Error in European Languages #434

@sseiichi

Description

@sseiichi

Describe the bug
When the browser language is set to a European language such as French or German, the following error occurs on page load:

SyntaxError: Expected double-quoted property name in JSON at positon 334 (line 8 column 37)

It seems that parsing the JSON string fails due to the influence of the language settings.
This issue occurs in the WebXR Export sample scene.

To Reproduce
Steps to reproduce the behavior:

  1. Build the WebXR Interactions sample scene (for example, the WebXRInteractionToolkit scene).
  2. Set Chrome’s language to French (or another European language) and load the page.

Unity info (please complete the following information):

  • Editor version: 2022.3.62f1
  • WebXR package version: 0.22.1
  • WebXR Interactions version: 0.22.0
  • Git or OpenUPM: OpenUPM
  • Using old components (like the Desert sample) or Input System + XR Interaction Toolkit: not sure.
  • Built-in render pipeline or URP: URP

Desktop (please complete the following information):

  • OS + Version: Windows 10
  • Browser: Chrome

Headset (please complete the following information):
It occurs as soon as the page is loaded in the browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions