Programming Languages:
// JavaScript code snippet
//https://www.npmjs.com/package/utf8
//https://github.com/mathiasbynens/quoted-printable
par_comment_qoted = quotedPrintable.encode(utf8.encode('test ąčęė'));
console.log('par_comment_qoted='+par_comment_qoted);
// Output in JavaScript: par_comment_qoted="test =C4=85=C4=8D=C4=99=C4=97"
Database Query:
-- Oracle SQL query
select utl_raw.cast_to_varchar2(utl_encode.quoted_printable_encode(utl_raw.cast_to_raw('test ąčęė'))) from dual;
-- Output in Oracle: test =E0=E8=E6=EB
Why do the same operations yield different results in JavaScript and Oracle? Is there a way to align the JavaScript code to produce the same quoted printable encoding result as Oracle?