我有一个类似的Dat文件:
? ur [IM?&v? xp p Z
2 0 1 vuq ~ uq ~ u a
; < ; wr [[BK??g? xp ur [B??? xp A*.9
7 eL
% *> .9
% *> 0!d1uq ~ y U!d 0
> Y M F /9.!A "65&*7
L % 7 / eF
% /!95! "65&*>
0
%1uq ~ 0
>! e9
%
6L 0
60 1uq ~ d
z e`
% !69 '
6IL
-*7 eF
% *>
3 9 *>
3 /0.!A1uq ~ p
4Y eV
%a M
F % /9.!A 47 L
0
6"!>! 0
694!
> % !/0-1uq ~ c
7! eF
%
>
49
" 7 A L
%
7
-F
*>
3 9
% 0
%1uq ~ ?
7"Q e
%?!604?"?
-*U *V
3 Y
%M :.!M 7/ 04F
" *7
3 F
% :.!9 *"7 04L
" 0
6'*031uq ~ Z
4z e`
% 049
" .L
% 0
6"!>! 0
694!
> % .*&0
1uq ~ |
7! eU
%
4 Y s
% V/ .Y
%M !647 % !/F- *0!9
.L 0
6'*031uq ~ s
4Y eV
%a
.M !F!d 4 *> 9
% 47
L
%
> e9
% '
6I0 1uq ~ ?
7! eU
% 0-.*V Y!dM -!U.! "?Q! @7
" @!F" "*7d 5? "VQ! 5
M
&F :.!> @" 69 "6L!d 0
6'*031uq ~ ? ?*Y s!d -?.! "*7Q! @V
" @!Y"M
&*F "*zd "0Q!65`
:.!> @" 69
&*L
> e9
% '
6I0 1uq ~ 2 0
6"!>! 0
694!
> % .
.0
1uq ~ ?
7! eU
%
V
M 47
" .F
% -? *>
3
9 % *7
3 L
V M 7 ":-F
%
9
% .&0
%1uq ~ S
V M 47
" .F
% 9
"6L!d 0
6'*031uq ~ ?
7"Q eF
% !6.&*>
9 ;-L
% !6V ;-M !.!7!
F % !6V 4I3M !.!7! F
*9 '0 '0
%1uq ~ L
*>3 `% e9
% 47
" .L
% 9
"60!d1uq ~ u .M
7 % F
0-F
*>
我已经尝试过,但未成功显示使用代码转换为的希伯来语文本:
Encoding hebrewEncoding = Encoding.GetEncoding("Windows-1255");
using (FileStream fileStream = new FileStream(Path, FileMode.Open, FileAccess.Read))
{
using (BinaryReader binaryReader = new BinaryReader(fileStream, Encoding.UTF8))
{
var count = binaryReader.BaseStream.Length / sizeof(int);
for (var i = 0; i < count; i++)
{
byte[] Hebrew = binaryReader.ReadBytes(8);
this.richTextBox1.AppendText(hebrewEncoding.GetString(Hebrew));
}
}
}
我无法按原样显示文字。有人可以指出我正确的方向。