GrolfCry - 2005-09-15

If do Label with text on cyrillics then after save and closing report anymore is opened (ERROR!). Decision - decode report in UTF-8 in other editors/convertors.   Possible solve and so

File openrpt-1.1.1beta-source\OpenRPT\wrtembed\reportwindow.cpp

Line 692 (Function bool ReportWindow::save(QIODevice * iod) )
+add line
ts.setEncoding(QTextStream::UnicodeUTF8);

Full Function Text
bool ReportWindow::save(QIODevice * iod) {
    // ok lets do it
    if(iod->open(IO_WriteOnly)) {
        // now write it to the file
        QTextStream ts(iod);
        ts.setEncoding(QTextStream::UnicodeUTF8);
        ts << document().toString();
        iod->close();
        lastSaveToDb = FALSE;
        setModified(FALSE);
        return TRUE;
    } else {
        //qDebug("Failed to open IODevice for writing.");
        QMessageBox::warning(this,tr("Report Writer"),
            tr("Unable to open/create file for writing!\n"
               "Save Failed! Check to make sure that you have\n"
               "permissions to the file you are trying to save to."),
            "Ok", 0, 0, 0, 0);
        return FALSE;
    }
}