function string_transcoder (target) {
    
    this.encodeList = encodings[target];
    if (this.encodeList === undefined) {
        return undefined;
    }
    
    //Initialize the easy encodings
    if (target === "windows-1252") {
        var i;
        for (i = 0x0; i <= 0x7F; i++) {
            this.encodeList[i] = i;          
        }
        for (i = 0xA0; i <= 0xFF; i++) {
            this.encodeList[i] = i;
        }
    }
    
}
/* 
 * Transcode a JavaScript string into a different encoding, and store
 * it in a Uint8Array. Assumes the string has the standard 
 * JavaScript encoding of either UCS-2 or UTF-16.
 * 
 * Can use the JavaScript stringencoding library to turn the
 * Uint8Array back into a newly encoded string. 
 * 
 * Returns undefined if anything went wrong. Currently supported
 * encoding types are:
 * "windows-1252"
 * 
 * 
 * Example:
 * var stringEx = "hi";
 * var temp = new string_transcoder("windows-1252");
 * var res = temp.transcode(stringEx);
 */
Transcode a JavaScript string into a different encoding, and store
it in a Uint8Array. Assumes the string has the standard
JavaScript encoding of either UCS-2 or UTF-16.

Can use the JavaScript stringencoding library to turn the
Uint8Array back into a newly encoded string.

Returns undefined if anything went wrong. Currently supported
encoding types are:
"windows-1252"

var stringEx = "hi";
var temp = new string_transcoder("windows-1252");
var res = temp.transcode(stringEx).
Transcode a JavaScript string into a different encoding and store it in a Uint8Array . Assumes the string has the standard JavaScript encoding of either UCS - 2 or UTF - 16 . Can use the JavaScript stringencoding library to turn the Uint8Array back into a newly encoded string . Returns undefined if anything went wrong . Currently supported encoding types are : " windows - 1252 " var stringEx = " hi " ; var temp = new string_transcoder ( " windows - 1252 " ) ; var res = temp . transcode ( stringEx ) .
function string_transcoder (target) {
    this.encodeList = encodings[target];
    if (this.encodeList === undefined) {
        return undefined;
    }
    if (target === "windows-1252") {
        var i;
        for (i = 0x0; i <= 0x7F; i++) {
            this.encodeList[i] = i;          
        }
        for (i = 0xA0; i <= 0xFF; i++) {
            this.encodeList[i] = i;
        }
    }
}
function string_transcoder ( target ) { this . encodeList = encodings [ target ] ; if ( this . encodeList === undefined ) { return undefined ; } if ( target === "windows-1252" ) { var i ; for ( i = 0x0 ; i <= 0x7F ; i ++ ) { this . encodeList [ i ] = i ; } for ( i = 0xA0 ; i <= 0xFF ; i ++ ) { this . encodeList [ i ] = i ; } } }
Transcode a JavaScript string into a different encoding, and store
 it in a Uint8Array.
Transcode a JavaScript string into a different encoding and store it in a Uint8Array .
//Initialize the easy encodings