PDA

View Full Version : Null character added with UTF-8 Text


Hasse
09-Jan-2004, 06:35 PM
Hello

I am having a problem with the new BC 2.1 build 214 and files with UTF-8 encoding, that was not present in 2.0.3. Steps to reproduce are as follows:

1. Create a text file ("file 1") with two lines of text:
foo
bar

2. Create a second text file ("file 2") with one line of text:
foo

3. Do a file compare with the "UTF8 Text" rule (Tools -> Pick Rules), and copy the second line ("bar") from "file 1" to "file 2".

4. Save "file 2".

Result:
Two null characters (U+0000) are added to line 2 like this:
U+0000barU+0000

Is there a new setting somewhere that I have missed, or is this a known bug?

Craig
12-Jan-2004, 01:31 PM
Thanks for the bug report. I can repeat this here and we'll have it fixed in the next build.