Re^5: unpacking wmic command's unicode outputby BrowserUk (Pope)
|on Nov 12, 2008 at 18:26 UTC||Need Help??|
Does wmic really output UTF-8?
It appears it does (some form of unicode anyway), if you redirect its output to a file (or via a pipe):
That first spludge(*) is the LE BOM 0xfffe. (It was a spludge when I c&p'd it!)
Probably utf-16le I think, but whatever it is, using -CS does seem to cause perl to work out what it is getting and treat it appropriately:
Whether by accident or design, it is useful.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.