equal
deleted
inserted
replaced
362 { |
362 { |
363 $output = 'SJIS'; |
363 $output = 'SJIS'; |
364 } |
364 } |
365 |
365 |
366 // Check that the encoding is supported |
366 // Check that the encoding is supported |
|
367 if (!in_array($input, mb_list_encodings())) |
|
368 { |
|
369 return false; |
|
370 } |
|
371 |
367 if (@mb_convert_encoding("\x80", 'UTF-16BE', $input) === "\x00\x80") |
372 if (@mb_convert_encoding("\x80", 'UTF-16BE', $input) === "\x00\x80") |
368 { |
|
369 return false; |
|
370 } |
|
371 if (!in_array($input, mb_list_encodings())) |
|
372 { |
373 { |
373 return false; |
374 return false; |
374 } |
375 } |
375 |
376 |
376 // Let's do some conversion |
377 // Let's do some conversion |