Skip to content

{unicode: true} does not work for me #19

@timsazon

Description

@timsazon

Hi! I've tried the beta version of your library with Unicode option support but it doesn't work. Still, return ??? instead Unicode symbols.
Tested on W10 Version 10.0.17763 Build 17763
Example of code (value in registry C:\Program Files\TeamSpeak 3 Client Реестр):

async function getTeamSpeakDirectory() {
  let path = await Registry.get('HKLM\\Software\\TeamSpeak 3 Client', '', {unicode: true});
  if (!path) path = await Registry.get('HKCU\\Software\\TeamSpeak 3 Client', '');
  console.log(path); // C:\Program Files\TeamSpeak 3 Client ??????
  return path;
}

It looks like 'cmd.exe /c chcp.com 67001' does not change encoding for next call,
await Registry.getCodePage() return 437 after await Registry.setCodePage(67001).

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