We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v14.17.4
^0.8.5
Ubuntu 20.04
When I tried to execute a command with string in latin1 ecoding, always execute in UTF-8;
const shell = require('shelljs'); const Iconv = require('iconv').Iconv const string = 'ééé' const iconv = new Iconv('UTF-8', 'latin1'); const comando = iconv.convert(`echo ${string}`); shell.exec(comando.toString()+'ééé > output.txt' ,{encoding:'latin1'})
The output terminal in LATIN1 enconding
���ééé
The output terminal in UTF-8
���-ééé
The text was updated successfully, but these errors were encountered:
I found way to execute; I created a file with ISO-8859-1 e put the command save with .sh and execute;
Sorry, something went wrong.
No branches or pull requests
Node version (or tell us if you're using electron or some other framework):
v14.17.4
ShellJS version (the most recent version/Github branch you see the bug on):
^0.8.5
Operating system:
Ubuntu 20.04
Description of the bug:
When I tried to execute a command with string in latin1 ecoding, always execute in UTF-8;
Example ShellJS command to reproduce the error:
The output terminal in LATIN1 enconding
The output terminal in UTF-8
The text was updated successfully, but these errors were encountered: