Add missing doc

This commit is contained in:
gti-eu 2020-01-28 14:24:42 +01:00 committed by GitHub
parent 8a9ca97b45
commit c169632f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2046,6 +2046,14 @@ class EmailCollector extends CommonObject
}
}
/**
* Converts a string from one encoding to another.
* @param string $string
* @param string $fromEncoding
* @param string $toEncoding
* @return string Converted string if conversion was successful, or the original string if not
* @throws Exception
*/
protected function convertStringEncoding($string, $fromEncoding, $toEncoding = 'UTF-8')
{
if(!$string || $fromEncoding == $toEncoding) {