View | Details | Raw Unified | Return to issue 84795
Collapse All | Expand All

(-)svx/source/items/flditem.cxx (-5 / +1 lines)
Lines 396-402 Link Here
396
	// read to a temp string first, read text encoding and
396
	// read to a temp string first, read text encoding and
397
	// convert later to stay compatible to fileformat
397
	// convert later to stay compatible to fileformat
398
	ByteString aTempString;
398
	ByteString aTempString;
399
	rtl_TextEncoding aTempEncoding = RTL_TEXTENCODING_MS_1252;  // #101493# Init for old documents
400
	rStm.ReadByteString(aTempString);
399
	rStm.ReadByteString(aTempString);
401
400
402
	rStm >> nFrameMarker;
401
	rStm >> nFrameMarker;
Lines 410-418 Link Here
410
		{
409
		{
411
			USHORT nCharSet;
410
			USHORT nCharSet;
412
			rStm >> nCharSet;
411
			rStm >> nCharSet;
413
414
			// remember encoding
415
			aTempEncoding = (rtl_TextEncoding)nCharSet;
416
		}
412
		}
417
		else
413
		else
418
			rStm.SeekRel( -nUlongSize );
414
			rStm.SeekRel( -nUlongSize );
Lines 421-427 Link Here
421
		rStm.SeekRel( -nUlongSize );
417
		rStm.SeekRel( -nUlongSize );
422
418
423
	// now build representation string due to known encoding
419
	// now build representation string due to known encoding
424
	aRepresentation = String(aTempString, aTempEncoding);
420
	aRepresentation = String(aTempString, RTL_TEXTENCODING_UTF8);
425
421
426
	eFormat= (SvxURLFormat)nFormat;
422
	eFormat= (SvxURLFormat)nFormat;
427
423

Return to issue 84795