fix unicode bug
This commit is contained in:
parent
7f57f6b9be
commit
f7d579c48d
4
main.js
4
main.js
@ -156,12 +156,12 @@ $('#go').click(function(){
|
||||
}
|
||||
}
|
||||
// convert result to binary
|
||||
output = textToBin(input);
|
||||
output = textToBin(encodeURIComponent(input));
|
||||
$('#output').val(replaceAll(replaceAll(output.toString(), "1", one), "0", zero));
|
||||
}
|
||||
else
|
||||
{
|
||||
var output = binToText(input);
|
||||
var output = decodeURIComponent(binToText(input));
|
||||
if ($('#useEncrypt').is(':checked'))
|
||||
{
|
||||
if (verifyPass('decrypt'))
|
||||
|
Loading…
Reference in New Issue
Block a user