14 $this->assertEquals(
'UTF-8',
$res );
24 $iptcData =
"Photoshop 3.0\08BIM\4\4\0\0\0\0\0\x06\x1c\x02\x19\x00\x01\xBC";
26 $this->assertEquals( [
'¼' ],
$res[
'Keywords'] );
35 $iptcData =
"Photoshop 3.0\08BIM\4\4\0\0\0\0\0\x09\x1c\x02\x19\x00\x04\xC3\xC3\xC3\xB8";
37 $this->assertEquals( [
'ÃÃø' ],
$res[
'Keywords'] );
47 $iptcData =
"Photoshop 3.0\08BIM\4\4\0\0\0\0\0\x11\x1c\x02\x19\x00\x04\xC3\xC3\xC3\xB8"
48 .
"\x1c\x01\x5A\x00\x03\x1B\x25\x47";
50 $this->assertEquals( [
'ø' ],
$res[
'Keywords'] );
57 $iptcData =
"Photoshop 3.0\08BIM\4\4\0\0\0\0\0\x07\x1c\x02\x19\x00\x02¼";
59 $this->assertEquals( [
'¼' ],
$res[
'Keywords'] );
67 $iptcData =
"Photoshop 3.0\08BIM\4\4"
69 .
"\x1c\x02\x19" .
"\x00\x01" .
"\xBC"
70 .
"\x1c\x02\x19" .
"\x00\x02" .
"\xBC\xBD";
72 $this->assertEquals( [
'¼',
'¼½' ],
$res[
'Keywords'] );
81 "Photoshop 3.0\08BIM\4\4\0\0\0\0\0\x0F\x1c\x02\x19\x00\x02¼\x1c\x01\x5A\x00\x03\x1B\x25\x47";
83 $this->assertEquals( [
'¼' ],
$res[
'Keywords'] );
testIPTCParseNoCharset88591()
IPTC::parse.
testIPTCParseNoCharsetUTF8()
IPTC::parse.
testRecognizeUtf8()
IPTC::getCharset.
testIPTCParseNoCharset88591b()
IPTC::parse.
testIPTCParseMulti()
Testing something that has 2 values for keyword IPTC::parse.
testIPTCParseUTF8()
IPTC::parse.
testIPTCParseForcedUTFButInvalid()
Same as testIPTCParseNoCharset88591b, but forcing the charset to utf-8.
static parse( $rawData)
This takes the results of iptcparse() and puts it into a form that can be handled by mediawiki.
static getCharset( $tag)
take the value of 1:90 tag and returns a charset