Changes between Version 16 and Version 17 of ObjectReference


Ignore:
Timestamp:
2015-11-06 13:59:34 (3 years ago)
Author:
speck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ObjectReference

    v16 v17  
    298298
    299299var b = gb.transformCharset(txt, from, to);
    300 // Useful when servers send response in a different charset than
     300// Useful when servers send the response body in a different charset than
    301301// what's declared in the content-type header or xml charset attribute.
    302 // It takes the chars in txt and encodes as bytes using the 'from' charset.
    303 // Then it decodes the bytes using the to charset, which almost always should be 'UTF-8'.
     302// The function encodes the chars in 'txt' to bytes using the 'from' charset.
     303// Then it decodes the bytes to a string using the 'to' charset, which almost always should be 'UTF-8'.
    304304// If a server sends UTF-8 declared as ISO-8859-1, use:
    305305t = gb.transformCharset(t, 'ISO-8859-1', 'UTF-8');