Note that there are some explanatory texts on larger screens.

plurals
  1. POConvert inline specified UTF-8 mail subject
    primarykey
    data
    text
    <p>want to convert the following raw mail subject to normal UTF-8 text:</p> <blockquote> <p>=?utf-8?Q?Schuker_hat_sich_vom_=C3=9Cbungsabend_(01.01.2012)_abgem?= =?utf-8?Q?eldet?=</p> </blockquote> <p>The real text for that is:</p> <blockquote> <p>Schuker hat sich vom Übungsabend (01.01.2012) abgemeldet</p> </blockquote> <p>My first approach to convert this:</p> <pre><code>$mime = '=?utf-8?Q?Schuker_hat_sich_vom_=C3=9Cbungsabend_(01.01.2012)_abgem?= =?utf-8?Q?eldet?='; mb_internal_encoding("UTF-8"); echo mb_decode_mimeheader($mime); </code></pre> <p>This gives me the following result:</p> <blockquote> <p>Schuker_hat_sich_vom_Übungsabend_(01.01.2012)_abgemeldet</p> </blockquote> <p>(Questions here: What am I doing wrong? Why do those underscores occur?) </p> <p>My second approach to convert this:</p> <pre><code>$mime = '=?utf-8?Q?Schuker_hat_sich_vom_=C3=9Cbungsabend_(01.01.2012)_abgem?= =?utf-8?Q?eldet?='; echo imap_utf8($mime); </code></pre> <p>This gives me the following (correct) result:</p> <blockquote> <p>Schuker hat sich vom Übungsabend (01.01.2012) abgemeldet</p> </blockquote> <p>Why does this work? On which method should I rely on?</p> <p>The reason I ask is that I previously asked another <a href="https://stackoverflow.com/questions/8193854/convert-inline-specified-utf-8-mail-subject-to-utf-8-text">mail subject decoding related question</a> where <code>mb_decode_mimeheader</code> was the solution whereas here <code>imap_utf8</code> would be the way to go. How can I ensure to decode everything correct for those both examples:</p> <blockquote> <p>=?utf-8?Q?Schuker_hat_sich_vom_=C3=9Cbungsabend_(01.01.2012)_abgem?= =?utf-8?Q?eldet?</p> </blockquote> <p>and</p> <blockquote> <p>=?UTF-8?B?UmU6ICMyLUZpbmFsIEFjY2VwdGFuY2UgdGVzdCB3aXRoIG5ldyB0ZXh0IHdpdGggU2xvdg==?= =?UTF-8?B?YWsgaW50ZXJwdW5jdGlvbnMgIivEvsWhxI3FpcW+w73DocOtw6khxYgi?=</p> </blockquote> <p>Should give me the expected results:</p> <blockquote> <p>Schuker hat sich vom Übungsabend (01.01.2012) abgemeldet</p> </blockquote> <p>and</p> <blockquote> <p>Re: #2-Final Acceptance test with new text with Slovak interpunctions "+ľščťžýáíé!ň"</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload