Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

networkInterfaces() returns question character instead of ó #610

Closed
MariaCamilaCubides opened this issue Nov 2, 2021 · 5 comments
Closed

Comments

@MariaCamilaCubides
Copy link
Contributor

MariaCamilaCubides commented Nov 2, 2021

Describe the bug
Hi. I am trying to find out all the interfaces from a device that has selected Spanish as the default language, but the response has a question character instead of ó. I tried to solve it by sending the command through utils.powershell() to use the OutputEncoding that you add recently but it doesn't work.
To Reproduce
Steps to reproduce the behavior:

  1. Run npm run test
  2. Select option 3
  3. See output

Current Output
[ ..., { iface: 'Conexi�n de red Bluetooth', ifaceName: 'Bluetooth Device (Personal Area Network)', ip4: '', ip4subnet: '', ip6: '', ip6subnet: '', mac: '98:01:a7:a7:94:a2', virtual: false, operstate: 'down', type: 'wired', duplex: '', mtu: '', speed: 3, dhcp: 'true', dnsSuffix: '', ieee8021xAuth: 'Unknown', ieee8021xState: 'Unknown', carrierChanges: 0 } ]

Expected behavior
[ ..., { iface: 'Conexión de red Bluetooth', ifaceName: 'Bluetooth Device (Personal Area Network)', ip4: '', ip4subnet: '', ip6: '', ip6subnet: '', mac: '98:01:a7:a7:94:a2', virtual: false, operstate: 'down', type: 'wired', duplex: '', mtu: '', speed: 3, dhcp: 'true', dnsSuffix: '', ieee8021xAuth: 'Unknown', ieee8021xState: 'Unknown', carrierChanges: 0 } ]

Environment (please complete the following information):

  • systeminformation package version: 5.9.8
  • VMware7,1
  • Windows 10 pro in spanish
  • CHCP 850
@sebhildebrandt
Copy link
Owner

@MariaCamilaCubides thank you for reporting ... currently ill, will work on it as sonn as I have recovered. One question: which command you tried to send to util.powershell()? Thank you in advance.

@MariaCamilaCubides
Copy link
Contributor Author

Hi @sebhildebrandt. I tried sending this command util.getWmic() + ' nic get /value' and also I tried through the function util.wmic() sending the command nic get /value, but both responses were with the question character.

@sebhildebrandt
Copy link
Owner

Thank you @MariaCamilaCubides , quite clear. I guess I know what the problem is. Will try to find a solution as soon as I am fine again.

@sebhildebrandt
Copy link
Owner

@MariaCamilaCubides Can you test this one more time? I made a transition to powerShell also for networkInterfaces(). Hope that solves the problem now.

@MariaCamilaCubides
Copy link
Contributor Author

@sebhildebrandt I tested networkInterfaces() and it works, now the output said iface: 'Conexión de red Bluetooth'. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants