--- oo_11beta_src.orig/sfx2/source/doc/docinf.cxx Mon Apr 14 22:58:43 2003 +++ oo_11beta_src/sfx2/source/doc/docinf.cxx Mon Apr 14 23:01:19 2003 @@ -227,13 +227,13 @@ SfxPSStringProperty_Impl( UINT32 nIdP, const String& aStr ) : aString(aStr), SfxPSProperty_Impl( nIdP, VT_LPSTR ), bIsUniCode(FALSE) { - nEncoding = RTL_TEXTENCODING_UTF8; + nEncoding = RTL_TEXTENCODING_MS_1250; } SfxPSStringProperty_Impl( UINT32 nIdP ) : SfxPSProperty_Impl( nIdP, VT_LPSTR ), bIsUniCode(FALSE) { - nEncoding = RTL_TEXTENCODING_UTF8; + nEncoding = RTL_TEXTENCODING_MS_1250; } void SetCodePage( UINT16 nCodePage ); @@ -313,8 +313,8 @@ // can ensure full unicode compatibility. The code page attribute is // written with UTF8 set! // Force nEncoding set to UTF8! - ByteString aTemp( aString, RTL_TEXTENCODING_UTF8 ); - nEncoding = RTL_TEXTENCODING_UTF8; + ByteString aTemp( aString, RTL_TEXTENCODING_MS_1250 ); + nEncoding = RTL_TEXTENCODING_MS_1250; UINT32 nLen = aTemp.Len(); rStream << (UINT32)( nLen + 1 ); rStream.Write( aTemp.GetBuffer(), nLen ); @@ -372,7 +372,7 @@ else { // Non-unicode strings are always stored with UTF8 encoding - return ByteString( aString, RTL_TEXTENCODING_UTF8 ).Len() + 5; + return ByteString( aString, RTL_TEXTENCODING_MS_1250 ).Len() + 5; } } @@ -1123,7 +1123,7 @@ pPS->AddProperty( new SfxPSDateTimeProperty_Impl( PID_EDITTIME, aEditTime ) ); pPS->AddProperty( new SfxPSStringProperty_Impl( PID_REVNUMBER, String::CreateFromInt32( GetDocumentNumber() ) ) ); - pPS->AddProperty( new SfxPSCodePageProperty_Impl( RTL_TEXTENCODING_UTF8 )); + pPS->AddProperty( new SfxPSCodePageProperty_Impl( RTL_TEXTENCODING_MS_1250 )); pPS->Save( *aStrPropSet ); delete pPS; return ( aStrPropSet->GetErrorCode() == 0 );