madskristensen/JavaScriptPrettier

Some special chars are garbled

HolgerJeromin opened this issue · 0 comments

Installed product versions

  • Visual Studio: 2019 Professional
  • This extension: 2.1.47

Description

Non-breaking spaces are garbled.

Steps to recreate

  1. open a js file. Enter a narrow no-break space for example from german wikipedia page or this text: '▕ ▏'
  2. run prettier from command line (node_modules/.bin/prettier.cmd --write .) is fine
  3. run prettier from visual studio contextmenu of this extension

Current behavior

The extension creates from the valid string '▕ ▏' the new string '???'.

image
=>
image

Expected behavior

should be preserved as it is with the command line

ref #2