Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Pls verify the charset of the database ( default for the db and the IPTC table ). It should be utf-8 as recommended by WP

    Thread Starter berlinfo

    (@berlinfo)

    Yes, checked.
    But don’t think about it, I will try to go back to the parts of the version before the last update.
    Thanks,
    Dieter

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I could easily make it a setting, or, patch it yourself:

    wppa-common-functions.php line 1340 reads:

    // Now add poto specific data item
    $photo 	= $id;
    $tag 	= $s;
    $desc 	= $iptc[$s][$i];
    $desc 	= utf8_encode( $desc );
    $status = 'default';
    $iret = wppa_create_iptc_entry( array( 'photo' => $photo, 'tag' => $tag, 'description' => $desc, 'status' => $status ) );
    if ( ! $iret ) wppa_log( 'Warning', 'Could not add IPTC tag '.$tag.' for photo '.$photo );

    Change to:

    // Now add poto specific data item
    $photo 	= $id;
    $tag 	= $s;
    $desc 	= $iptc[$s][$i];
    //$desc 	= utf8_encode( $desc );
    $status = 'default';
    $iret = wppa_create_iptc_entry( array( 'photo' => $photo, 'tag' => $tag, 'description' => $desc, 'status' => $status ) );
    if ( ! $iret ) wppa_log( 'Warning', 'Could not add IPTC tag '.$tag.' for photo '.$photo );

    i.e. comment away: $desc = utf8_encode( $desc );

    Thread Starter berlinfo

    (@berlinfo)

    Hi Jacob!

    Great! Works perfect again.
    Thank you so much, this was really important for me.

    Groeten uit Berlijn,

    Dieter

    Dear Jacob,

    the description solved the problem (new with an update) for me as well. Just to let you know: the default of mySQL tables is set to “utf8_general_ci”.

    Best regards
    Peter

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    @pfm: You confuse me, is it fixed for you in 6.3.9 or do you need the patch from above?

    Dear Jacob,

    after one of the last updates I did have the same problem as described above. After comment of the line in wppa-common-functions.php the problem is solved.

    I just wanted to mention that my database is per default set to “utf8_general_ci” (you mentioned above: “Pls verify the charset of the database”)

    Maybe this helps on a general fix.

    Txs!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Clear. Thanx. I will make it a setting in the next version ( 6.3.11 )

    Thread Starter berlinfo

    (@berlinfo)

    Great!
    Thank you!

    Dieter

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘6.3.9 Bug Fixes IPTC data converted to utf8’ is closed to new replies.