stevecondylios / netstat

Network statistics in R
https://stevecondylios.github.io/netstat/
Other
3 stars 4 forks source link

Error with French character É in netstat #11

Open H31SD opened 1 year ago

H31SD commented 1 year ago

Hello.

netstat on French Windows returns État (State) which is converted in \x90tat"

I have now this issue :

Error in gsub("\\s+", ",", ActiveConnections) : input string 1 is invalid
In addition: Warning message:
In gsub("\\s+", ",", ActiveConnections) :
  unable to translate '  Proto  Adresse locale         Adresse distante       <90>tat' to a wide string

Thx for your help ! 👍

diegomsg commented 1 year ago

Same issue in Brazilian portuguese PT-BR, or simply latin1 encoding from many codepages in windows. Proposed parse_netstat() changes in #12.