Hayır utf-8 ne zaman iptcembed ile JPG IPTC veri yazmak

0 Cevap php
function iptc_make_tag($rec, $data, $value){
    $length = strlen($value);
    $retval = chr(0x1C) . chr($rec) . chr($data);

   if($length < 0x8000)
   {
      $retval .= chr($length >> 8) .  chr($length & 0xFF);
   }
      else
   {
       $retval .= chr(0x80) . 
               chr(0x04) . 
               chr(($length >> 24) & 0xFF) . 
               chr(($length >> 16) & 0xFF) . 
               chr(($length >> 8) & 0xFF) . 
               chr($length & 0xFF);
   }

    return $retval . $value;

}

(Dan http://php.net/manual/de/function.iptcembed.php)

to write captions in my jpgs. Every Umlaut and other special chars are wrong when I read the jpgs with Picasa/Picasaweb.

Is this function not ready for unicode? How can I save utf-8 encode strings in jpgs?

Thanks for your help, Christian

0 Cevap