Skip to content

Commit

Permalink
Ups
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzstaffel committed Jun 13, 2024
1 parent 3be55c0 commit 9c970c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rapidxmlsupport/XMLFileImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ VCOMError CXMLFileImpl::WriteFile(IFileIdentifier* pFileID, EXMLEncoding encodin
VCOMError CXMLFileImpl::WriteBuffer(IXMLFileIOBuffer* pOutputBuffer, EXMLEncoding encoding)
{
tinyxml2::XMLPrinter printer;
fDoc.SetBOM(true);
printer.PushDeclaration("xml version=\"1.0\" encoding=\"utf-8\"");
printer.PushDeclaration("xml version=\"1.0\" encoding=\"UTF-8\"");
fDoc.Print(&printer);
pOutputBuffer->SetData((void*)printer.CStr(), printer.CStrSize()-2);
return kVCOMError_NoError;
Expand Down

0 comments on commit 9c970c9

Please sign in to comment.