English > Support
Bug: Export templates and UTF8BOM
nostra:
--- Quote from: svenne on July 07, 2010, 01:03:24 pm ---
--- Quote ---Unfortunately I can't reproduce the problem
--- End quote ---
Just a guess: perhaps something is different with your database that has an effect on this issue? Did you try it with a newly generated database, too?
--- End quote ---
I have tried it with a new database with the same result. I think I must try it on a Win XP machiene...
mgpw4me@yahoo.com:
Vista also shows the header, regardless of the app (ie. notepad++).
svenne:
Ok, to narrow it down... the problem seems to be: all files exported by PVD with utf8bom (at least on my computer with WinXP) start with the following three bytes:
3F BB 3F
Displayed as ISO 8851-1 (or ANSI) this is: ?»?
But the correct BOM for UTF8 should be:
EF BB BF
Displayed as ISO 8851-1 (or ANSI) this is: 
This one works fine and is recognized as UTF8.
I attached a zip containing a text file exported with PVD (template: "Plain list.ptm") using UTF8BOM (called "file as exported by PVD.txt") and a second file where I (manually) changed the first three bytes to EF BB BF ("same file with BOM corrected manually.txt")...
Plain list.ptm:
--- Code: ---%OPTIONS%
filter="Text Files|*.txt"
encoding="UTF8BOM"
%OPTIONS%{%value=203}. {%value=title} / {%value=origtitle} ({%value=year}) [{%value=genre}]
--- End code ---
Quite often programs change characters to "?" when the character that is exported does not fit the encoding. Might be a hint, but I'm wondering if it makes any sense, because ï and ¿ are both present in the ANSI character table.
[attachment deleted by admin]
daddydave:
I have this problem as well and was able to reproduce svenne's troubleshooting. Is the fix on the to-do list for Version 1?
nostra:
A fix will be available soon
Navigation
[0] Message Index
[*] Previous page
Go to full version