Lines 348-355
QCString fromUnicode( const QString &dat
Link Here
|
348 |
|
348 |
|
349 |
void replaceCharsetHeader( QString &output ) |
349 |
void replaceCharsetHeader( QString &output ) |
350 |
{ |
350 |
{ |
351 |
QString name = QTextCodec::codecForLocale()->name(); |
351 |
QString name = QTextCodec::codecForLocale()->mimeName(); |
352 |
name.replace( QString( "ISO " ), "iso-" ); |
|
|
353 |
output.replace( QString( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">" ), |
352 |
output.replace( QString( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">" ), |
354 |
QString( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=%1\">" ).arg( name ) ); |
353 |
QString( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=%1\">" ).arg( name ) ); |
355 |
} |
354 |
} |