Ok. I've read this in the User guide as well:admin wrote:The tooltip explains it.
Code: Select all
Will match a string "Text" with "T0e0x0t0".So what does the tooltip explain?
Ok. I've read this in the User guide as well:admin wrote:The tooltip explains it.
Code: Select all
Will match a string "Text" with "T0e0x0t0".The search problem still exists in v16.50.0212. I did same test in latest build, and got identical result as in older version.admin wrote:OK, I see, and I could reproduce it.
The problem here is that Big5 has no BOM, and there is no safe way to detect a Big5 (or any other BOM-less) encoding by scanning the byte patterns. So you would have to tell XY the encoding of the file. This is currently not possible in content search.
Now in your case Big5 appears to be the system default so I would have expected that it works out of the box. I will check this now...
... well, it's complex and hard to debug. I have to switch back and forth between German and Chinese regional settings all the time, and need to compile the app for testing each time since the source code is garbled under Chinese regional settings. I finally thought I had it but for reasons I don't understand it failed. I'm currently out of ideas. Nevertheless I upload the beta version. Maybe it works at your end.
Code: Select all
System Locale ID: 1031 (de-DE)
Thread Locale ID: 1031 (de-DE)
Default ANSI Code Page: 1252 (ANSI - Lateinisch I)
Active Code Page: 1252 (ANSI - Lateinisch I)
DBCS Code Page: No------------------------------------------------------------------------------------admin wrote:Could you please click Help | Various Information and post the results, this part of it:
Code: Select all
System Locale ID: 1031 (de-DE) Thread Locale ID: 1031 (de-DE) Default ANSI Code Page: 1252 (ANSI - Lateinisch I) Active Code Page: 1252 (ANSI - Lateinisch I) DBCS Code Page: No
I realized that probably nobody (apart from programmers) knows (or needs to know) what wide strings are. So I finally did what I planned already yesterday: I removed the whole option. Nobody really needs it.oXYgen wrote:Ok. I've read this in the User guide as well:admin wrote:The tooltip explains it.As I understand it will match UTF-16 LE encoding? Right? I've written above that "Match unicode" couldn't find UTF-16 (+BOM). And you have said that UTF-16 (-BOM) is not supported at all.Code: Select all
Will match a string "Text" with "T0e0x0t0".
So what does the tooltip explain?
Thanks.Nolan wrote:------------------------------------------------------------------------------------admin wrote:Could you please click Help | Various Information and post the results, this part of it:
Code: Select all
System Locale ID: 1031 (de-DE) Thread Locale ID: 1031 (de-DE) Default ANSI Code Page: 1252 (ANSI - Lateinisch I) Active Code Page: 1252 (ANSI - Lateinisch I) DBCS Code Page: No
System Locale ID: 1028 (zh-TW)
Thread Locale ID: 1028 (zh-TW)
Default ANSI Code Page: 950 (ANSI/OEM - Traditional Chinese Big5)
Active Code Page: 950 (ANSI/OEM - Traditional Chinese Big5)
DBCS Code Page: Yes
------------------------------------------------------------------------------------
Yes.admin wrote: When you show test_Big5.txt in the Preview tab you see the Chinese characters right away without selecting "Big5" from the orange button dropdown menu?
Yepadmin wrote:I removed the whole option. Nobody really needs it.
Code: Select all
00000000: EF BB BF E8 B2 93 20 E9 A6 AC 20 E9 B7 B9 0D 0A ; ï»¿è² é¦¬ é·¹..
00000010: E8 99 8E 20 E7 89 9B 20 E7 8B 97 ; è ç ç
The original use of this option was to provide an easy way to find text in wide string resources in binary files.oXYgen wrote:Yepadmin wrote:I removed the whole option. Nobody really needs it.Its effect was unclear and unpredictable.
I'm just trying to clarify. Wide characters in Windows are 2-byte wchar_t. If you add trailing zeros to wide chars you probably want to create surrogate pairs. Only code points bigger than U+FFFF need surrogate pairs. ASCII codes from 0-127 are identical to Unicode. So if you want to find "Text" you don't really need to match it with "T0e0x0t0".
My test_UTF-8.txt:admin wrote:Weird, it works fine here when I switch Windows to Big5.
This is the raw view of my test_UTF-8.txt:Is it identical to yours?Code: Select all
00000000: EF BB BF E8 B2 93 20 E9 A6 AC 20 E9 B7 B9 0D 0A ; ï»¿è² é¦¬ é·¹.. 00000010: E8 99 8E 20 E7 89 9B 20 E7 8B 97 ; è ç ç