| @@ 680-682 (lines=3) @@ | ||
| 677 | } |
|
| 678 | ||
| 679 | // UTF-16 (BE) |
|
| 680 | if (substr($str, 0, 2) == pack('CC', 0xfe, 0xff)) { |
|
| 681 | $str = substr($str, 2); |
|
| 682 | } |
|
| 683 | ||
| 684 | // UTF-16 (LE) |
|
| 685 | if (substr($str, 0, 2) == pack('CC', 0xff, 0xfe)) { |
|
| @@ 685-687 (lines=3) @@ | ||
| 682 | } |
|
| 683 | ||
| 684 | // UTF-16 (LE) |
|
| 685 | if (substr($str, 0, 2) == pack('CC', 0xff, 0xfe)) { |
|
| 686 | $str = substr($str, 2); |
|
| 687 | } |
|
| 688 | ||
| 689 | return $str; |
|
| 690 | } |
|