I have another entry:
function encode(data)
{
var str = String.fromCharCode.apply(null,data);
return btoa(str).replace(/.{76}(?=.)/g,'$&
');
}
Minified, 88 characters:
function e(d){return btoa(String.fromCharCode.apply(d,d)).replace(/.{76}(?=.)/g,'$&
')}
Or if you want trailing newlines, 85 characters:
function e(d){return btoa(String.fromCharCode.apply(d,d)).replace(/.{1,76}/g,'$&
')}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…