Page 1 of 1

IA18: Control Characters in first line (Write into file)

Posted: Tue Dec 17, 2013 2:43 am
by mikKummerfeld
Hey guys,

next bug: Always when I write Content into a new file (like a batch-file), the first line Begins with rubbish control characters. Please fix that.

screen105.png
screen105.png (12.01 KiB) Viewed 6275 times


Result in:

screen104.png
WriteToFileCommand
screen104.png (10.28 KiB) Viewed 6275 times

Re: IA18: Control Characters in first line (Write into file)

Posted: Tue Dec 17, 2013 4:43 am
by FrancescoT
Dear Heiko,

IA now uses UTF-8 (w BOM) Unicode encoding with text files, consequently the first three bytes are: 0xEF,0xBB,0xBF (=BOM) ... and not a bug.

Regards

Re: IA18: Control Characters in first line (Write into file)

Posted: Tue Dec 17, 2013 4:51 am
by mikKummerfeld
How can I avoid that? Because I am writing Batch files with Content e.g

rename
miabuild
copy
...

and commands with that 0xEF,0xBB,0xBF are not working.

Okay I can write a dummy line at first with cls for example...but this is not the real solution for me

Re: IA18: Control Characters in first line (Write into file)

Posted: Tue Dec 17, 2013 5:13 am
by FrancescoT
Dear Heiko,

...with adding an empty single "dummy" string line at the beginning of your file, it should work.

Regards

Re: IA18: Control Characters in first line (Write into file)

Posted: Tue Dec 17, 2013 5:42 am
by mikKummerfeld
Ok thanks Francesco, it works this way...

You can Close that thread as it is not a bug, it's a feature ;)

Re: IA18: Control Characters in first line (Write into file)

Posted: Wed Dec 18, 2013 12:13 pm
by FrancescoT
:D