title: How to convert sJIS rom header to utf8 in qt6
body: <p>I'm trying to help with simple64 which uses qt6 and displaying the sJIS rom header to utf8 correctly.</p>
  <p>The SJIS Header is Japanese.</p>
  <p>At the moment it's showing ������Ϻޯ�ܰ��� (sJIS) or this ÐÝÅÃÞÀÏºÞ¯ÁÜ°ÙÄÞ (utf8) when I'm using a QByteArray to try and convert it.</p>
  <p>The code currently uses this:</p>
  <p><code>output = QString(&quot;%1: %2&quot;).arg((const char *) Context, message);</code></p>
  <p>I know that %2 contains the string I need, unfortunately it just displays as a great big information dump.</p>
  <p>I've tried doing this code in an attempt to split the strings so I can isolate the one in question:</p>
  <pre><code>void split(const QByteArray &amp; a, QList&lt;QByteArray&gt; &amp; l, int n)
  {
      for (int i = 0; i &lt; a.size(); i+= n)
      {
          l.push_back(a.mid(i, n));
      }
  }
  
  void DebugCallback(void *Context, int level, const char *message)
  {
      if (level == M64MSG_INFO)
      {
          split(ba, ql, ba.length());
          
          for (QList&lt;QByteArray&gt;::const_iterator itl = ql.constBegin();
          itl != ql.constEnd(); ++itl)
          {
              const QByteArray &amp; a = *itl;
              
              for(QByteArray::const_iterator ita = a.constBegin();
              ita != a.constEnd(); ++ita)
              {
                  output += *ita;
              }
              
              output += &quot;\n&quot;;
      }
  </code></pre>
  <p>What am I missing for the conversion? Also I don't want to use the qt5Compatibility as it adds more dlls just to solve this.</p>
  <p>I'm semi-positive I could use the QLocale::language but i'm not sure on it's usage even after checking the documentation.</p>
  <p>The conversion needs to work for any sJIS characters.</p>