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

�� in file #226

Closed
dtgm opened this issue Jun 17, 2016 · 3 comments
Closed

�� in file #226

dtgm opened this issue Jun 17, 2016 · 3 comments

Comments

@dtgm
Copy link
Owner

dtgm commented Jun 17, 2016

ERROR: The term '��Uninstall-ChocolateyPackage' is not recognized as 
the name of a cmdlet, function, script file, or operable program. Check the spelling 
of the name, or if a path was included, verify that the path is correct and try again.
@dtgm
Copy link
Owner Author

dtgm commented Jun 17, 2016

�� is two sets of �

[int[]][char[]]'�'
239
191
189
'{0:x} {1:x} {2:x}' -f 239,191,189
ef bf bd
[int[]][char[]]'�' | %{'{0:x}' -f $_}

efbfbd is UTF8 hex for the replacement character which is shown in ISO-8859-1 as the the chars �

(UTF-16 the hex would be 0xfffd)

and in web broswers would be displayed as

@dtgm
Copy link
Owner Author

dtgm commented Jun 17, 2016

But how are these characters getting in?

The source files are all UTF-8 now as of #214

$ file _output/arduino/1.6.9/tools/chocolateyUninstall.ps1
_output/arduino/1.6.9/tools/chocolateyUninstall.ps1: UTF-8 Unicode (with BOM) text

$ file _output/arduino/1.6.9/tools/chocolateyUninstall.ps1
_output/arduino/1.6.9/tools/chocolateyUninstall.ps1: ASCII text

But the built files are not? ... wth

@dtgm
Copy link
Owner Author

dtgm commented Jun 17, 2016

^^^ was not specifying UTF8 with WriteAllText

@dtgm dtgm closed this as completed in 0fee8c0 Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant