Skip to content

UTF8 symbols in inspector protocol are not properly encoded #1116

@darind

Description

@darind

Please, provide the details below:

Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?

Yes

Tell us about the problem

UTF8 symbols are not properly taken into account when debugging a NativeScript application in Chrome DevTools.

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.1.0
  • Cross-platform modules: 4.1.0
  • Runtime(s): 4.1.3

Did the error happen while the app was being constructed? (buildtime error)

No

Did the error happen while the app was executing? (runtime error)

Yes

Please tell us how to recreate the issue in as much detail as possible.

  1. tns create my-app
  2. cd my-app
  3. tns debug android
  4. Open the url in Chrome DevTools and from the Sources tab select main-view-model.js
  5. Replace this.set("message", getMessage(this.counter)); with this.set("message", "абв");
  6. Save the changes (Ctrl+S)
  7. Hit the Tap button in the application

Expected result: абв is shown
Actual result: some garbage characters are shown

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions