[FIXED] UTF-16(LE) formatted content

Discussion related to "Everything" 1.5 Alpha.
Post Reply
NotNull
Posts: 5948
Joined: Wed May 24, 2017 9:22 pm

[FIXED] UTF-16(LE) formatted content

Post by NotNull »

Something strange happens when reading UTF-16(LE) formatted content: it looks like Everything "sees" an extra character at the beginning of the first line of the text.
Second line and beyond seemed fine (using a different search query)

Everything can read the content (stored as $A:), but when changing the first character of $A: to "xxx___", it does not change the actual first character (the "d" of "deleteme"), but something else.
That "something else" does not show up in a hex-editor.

Any idea what is happening here?

UTF-16(LE) content.jpg
UTF-16(LE) content.jpg (147.3 KiB) Viewed 1107 times

Search query:

Code: Select all

count:1 addcol:A,B   A:=get_property("T:\TEST\deleteme.txt",content)   B:=REPLACE($A:,1,1,"xxx___") 
void
Developer
Posts: 19568
Joined: Fri Oct 16, 2009 11:31 pm

Re: UTF-16(LE) formatted content

Post by void »

Everything is reading the BOM and including it in the content.

I will skip over the BOM in the next alpha update.

Thanks for bringing this issue to my attention.
void
Developer
Posts: 19568
Joined: Fri Oct 16, 2009 11:31 pm

Re: UTF-16(LE) formatted content

Post by void »

Everything 1.5.0.1405a will now skip the BOM when reading content.
Post Reply