Changeset 17749 for branches/2.4/include/functions_metadata.inc.php
- Timestamp:
- Sep 4, 2012, 10:04:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/include/functions_metadata.inc.php
r12922 r17749 91 91 // how to detect it so a plugin should do the trick. 92 92 $value = trigger_event('clean_iptc_value', $value); 93 $is_utf8 = seems_utf8($value); 94 $value = convert_charset( $value, 95 $is_utf8 ? 'utf-8' : 'iso-8859-1', 96 get_pwg_charset() ); 93 if ( ($qual = qualify_utf8($value)) != 0) 94 {// has non ascii chars 95 $value = convert_charset( $value, 96 $qual>0 ? 'utf-8' : 'iso-8859-1', 97 get_pwg_charset() ); 98 } 97 99 } 98 100 return $value;
Note: See TracChangeset
for help on using the changeset viewer.