Commit bbe081b
merit\rembjo0
Adds UTF-8 encoding in Util base64 encode/decode
Default encoding used in Util.base64encoder() methods.
This commits adds UTF-8 encoding in string <-> byte conversions.
Added Util.toBytesUtf8(String) and Util.toStringUtf8(byte[]).
No tests added for this one. It's a bit messy to test
things that require the JVM defaults to change. We usually
use code analysis tools to detect byte<->string conversion
issues.1 parent 560d41d commit bbe081b
1 file changed
Lines changed: 22 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
| 335 | + | |
344 | 336 | | |
345 | 337 | | |
346 | 338 | | |
| |||
655 | 647 | | |
656 | 648 | | |
657 | 649 | | |
658 | | - | |
| 650 | + | |
659 | 651 | | |
660 | 652 | | |
661 | 653 | | |
| |||
667 | 659 | | |
668 | 660 | | |
669 | 661 | | |
670 | | - | |
| 662 | + | |
671 | 663 | | |
672 | 664 | | |
673 | 665 | | |
| |||
691 | 683 | | |
692 | 684 | | |
693 | 685 | | |
694 | | - | |
| 686 | + | |
695 | 687 | | |
696 | 688 | | |
697 | 689 | | |
| |||
1395 | 1387 | | |
1396 | 1388 | | |
1397 | 1389 | | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
1398 | 1407 | | |
0 commit comments