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

Doesn't encode and/or decode correctly #2

Open
fresheneesz opened this issue Feb 13, 2014 · 1 comment
Open

Doesn't encode and/or decode correctly #2

fresheneesz opened this issue Feb 13, 2014 · 1 comment

Comments

@fresheneesz
Copy link

I'm testing this with a simple text file:

wahtawever

and the example given in the readme:

var uuencode = require ('js-uuencode');
var fs = require ('fs');

var inFile = './file.txt';

function test(){
    data = "";
    var infs = fs.createReadStream(inFile)
    .on('open', function (){
        infs
        .pipe(new uuencode({encoder: true}))
        .on('data', function (d){
        })
        .pipe(new uuencode({decoder: true}))
        .on('data', function (d){
            data += d;
        })
        .on('end', function () {
            console.log("Decoded: "+data);
        });
    })
    };

test();

The output i get is:

Decoded: ↑??☺e?♣♣?<r?¶?v▬?F↨vWfW

Obviously not correct. Is this project still going to be maintained/completed?

@fresheneesz
Copy link
Author

Looks like its the decoding that's broken. I tried the function here, and it seems to output the same encoded value http://phpjs.org/functions/convert_uuencode/

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