by sashiman » Wed Feb 07, 2007 2:11 pm
Is it possible using UltraEdit to remove a BOM already present in a file? If I try toggling to Hex View and cut the 2 bytes (FF FE), it also eats the first character of my text -- not in the Hex editor, but in the normal mode. Subsequently opening the file in Word or Edit Plus 2 confirms that the character is gone. I am using v10.20 and have deactivated both "write BOM header" fields in Advanced > Config > General, as Mofi suggested above.
Why is this important? The problem is that we are entering the files (tables of contents) generated in a Postgres SQL base, and the first line identifies a field in a table -- a book ID. The subsequent lines are themselves data (each a line in a table of contents which allows us to create a new table -- sections -- linked to the first table). Obviously the presence of the BOM is a showstopper, because the link can't be made with those extra two bytes. (I hope this is relatively clear, I am not a computer scientist, this is what I understand of the process.)
My problem is simply to find a way, preferably using UltraEdit rather than EMACS, to get rid of the BOM. Mofi, your reply above seems to indicate that this is not possible?
Thanks for any suggestions you might have.