@magic-xpa/utils 4.1000.0-dev4100.406 → 4.1000.0-dev4100.408
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1479,15 +1479,10 @@ class Base64 {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
else {
|
|
1481
1481
|
try {
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
let instance = ISO_8859_1_Encoding.ISO_8859_1;
|
|
1487
|
-
let encoding2 = isUseEnvCharset ? encoding : instance;
|
|
1488
|
-
let ba = Base64.encodeBytes(encoding2.GetBytes(str));
|
|
1489
|
-
result = instance.GetString(ba, 0, ba.length);
|
|
1490
|
-
}
|
|
1482
|
+
let instance = ISO_8859_1_Encoding.ISO_8859_1;
|
|
1483
|
+
let encoding2 = isUseEnvCharset ? encoding : instance;
|
|
1484
|
+
let ba = Base64.encodeBytes(encoding2.GetBytes(str));
|
|
1485
|
+
result = instance.GetString(ba, 0, ba.length);
|
|
1491
1486
|
}
|
|
1492
1487
|
catch (ex) {
|
|
1493
1488
|
throw new ApplicationException(ex.Message);
|
|
@@ -1541,15 +1536,10 @@ class Base64 {
|
|
|
1541
1536
|
}
|
|
1542
1537
|
else {
|
|
1543
1538
|
try {
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
let instance = ISO_8859_1_Encoding.ISO_8859_1;
|
|
1549
|
-
let array = Base64.decodeBytes(instance.GetBytes(str));
|
|
1550
|
-
let encoding2 = (encoding !== null) ? encoding : instance;
|
|
1551
|
-
result = encoding2.GetString(array, 0, array.length);
|
|
1552
|
-
}
|
|
1539
|
+
let instance = ISO_8859_1_Encoding.ISO_8859_1;
|
|
1540
|
+
let array = Base64.decodeBytes(instance.GetBytes(str));
|
|
1541
|
+
let encoding2 = (encoding !== null) ? encoding : instance;
|
|
1542
|
+
result = encoding2.GetString(array, 0, array.length);
|
|
1553
1543
|
}
|
|
1554
1544
|
catch (ex) {
|
|
1555
1545
|
throw new ApplicationException(ex.Message);
|