/**
  * Convert character set and HTML entities in the value of input content array keys
  *
  * @param	array		Standard content array
  * @param	string		Charset of the input content (converted to utf-8)
  * @return	void
  */
 function charsetEntity2utf8(&$contentArr, $charset)
 {
     // Convert charset if necessary
     foreach ($contentArr as $key => $value) {
         if (strlen($contentArr[$key])) {
             if ($charset !== 'utf-8') {
                 $contentArr[$key] = $this->csObj->utf8_encode($contentArr[$key], $charset);
             }
             // decode all numeric / html-entities in the string to real characters:
             $contentArr[$key] = $this->csObj->entities_to_utf8($contentArr[$key], TRUE);
         }
     }
 }