# FB 700/Delphi 2010 - Update Project Settings File changes DProj File Format

**URL:** https://www.finalbuilder.com/forums/t/fb-700-delphi-2010-update-project-settings-file-changes-dproj-file-format/3281
**Category:** Bugs
**Created:** [September 2, 2010, 12:52pm UTC](https://www.finalbuilder.com/forums/t/fb-700-delphi-2010-update-project-settings-file-changes-dproj-file-format/3281 "2010-09-02T12:52:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tgrusche](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/6f9a4e/32.png) [@tgrusche](https://www.finalbuilder.com/forums/u/tgrusche)
#### Post date: [September 2, 2010, 12:52pm UTC](https://www.finalbuilder.com/forums/t/fb-700-delphi-2010-update-project-settings-file-changes-dproj-file-format/3281/1 "2010-09-02T12:52:21Z")

</div>

Configuration: FB 7.0.0.605/Windows XP SP3/Delphi 2010 Professional (all Updates and Hotfixes installed)

It seems that some Delphi Project files&nbsp;have the file format UTF-8 as a default. We found Project.dproj/.dproj.local/.dsk. Maybe there are some other files affected. It seems also that there is no option in the Delphi IDE to change it or set a default for this files.&nbsp;  
For other files (.dpr/.pas/.inc/...)&nbsp;the file&nbsp;format&nbsp;is&nbsp;ANSI as a default&nbsp;but&nbsp;can also be UTF-8. The UTF-8&nbsp;files are marked&nbsp;with a corresponding BOM.

If you now use&nbsp;the "Build Delphi Win32 Project" for Delphi 2010 with the options "Update Project Settings File with version info" the file format of the Project.dproj is&nbsp;changed from UTF-8 to Ansi or Text-only after running the build (for options see attached document).  
  
This is a big mess because it is not possible to make an automatic checkin into version control. The&nbsp;individual versions of the files&nbsp;are not&nbsp;comparable/mergable&nbsp;anymore in a useful way. For an automatic build process the files are destroyed for this moment.

&nbsp;

&nbsp;

You can "repair"&nbsp;project files if you open them in the Delphi IDE, make changes in the project options and save the file again. But this is not practical in an automatic build process. We think the file format of the Delphi have to be preserved also after changes from the build.

We need a workaround or another solution urgently.

Regards,  
Thomas

&nbsp;

&nbsp;

&nbsp;

[Fb700\_D2010\_error.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/40c8a97f24627be75d59b84d2e4cdbd937fc879f.zip) (73.477 KB)

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 2, 2010, 3:48am UTC](https://www.finalbuilder.com/forums/t/fb-700-delphi-2010-update-project-settings-file-changes-dproj-file-format/3281/2 "2010-09-02T03:48:56Z")

</div>

Hi Thomas   
  
 Thanks for the report. This is an issue with the mxml parser not writing a BOM, and with delphi not setting an encoding attribute on the dproj file (this is typical of the msbuild xml file format). I have updated our code so that it always writes a UTF8 BOM when saving the dproj. I’ll post here when a build with the fix is available.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 2, 2010, 4:11am UTC](https://www.finalbuilder.com/forums/t/fb-700-delphi-2010-update-project-settings-file-changes-dproj-file-format/3281/3 "2010-09-02T04:11:35Z")

</div>

Here’s the fix : [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_639.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_639.exe)

---

<div class="post-metadata">

### Author: ![tgrusche](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/6f9a4e/32.png) [@tgrusche](https://www.finalbuilder.com/forums/u/tgrusche)
#### Post date: [September 2, 2010, 9:59am UTC](https://www.finalbuilder.com/forums/t/fb-700-delphi-2010-update-project-settings-file-changes-dproj-file-format/3281/4 "2010-09-02T09:59:54Z")

</div>

The fix is running. The file format is UTF-8 before and after running a build with FinalBuilder.

There is a small issue left.  
The Delphi&nbsp;XML&nbsp;formatting in the .dproj file is different from the FinalBuilder XML&nbsp;formatting. We don't found any deeper information about this file format and how it is build. But&nbsp;we think this issue can be adressed for a later version if needed.

Merge into version control is ok. But&nbsp;one has to pay attention on&nbsp;manual compare with version control. Here&nbsp;a tool is needed which can ignore blanks on compare. Compare tools without this functionality like the MS&nbsp;Source Control standard tool give crude results which are not usable.

&nbsp;
