G
Guoqi Zheng
It is a strange, I can not understand when to use UFT7 and when to use UTF8
Supposed I have the following
Dim b As Byte()
ReDim b(5)
b(0) = 12
b(1) = 23
b(2) = 33
b(3) = 44
b(4) = 251
b(5) = 252
If I use
Dim aa As String = System.Text.Encoding.UTF7.GetString(b)
It will return the correct string. b
But if I use
Dim aa As String = System.Text.Encoding.UTF8.GetString(b)
Byte 251, 252 are missing from the output...
Does something understand why it is this? and when I use UTF7 and when to
use UTF8????
Supposed I have the following
Dim b As Byte()
ReDim b(5)
b(0) = 12
b(1) = 23
b(2) = 33
b(3) = 44
b(4) = 251
b(5) = 252
If I use
Dim aa As String = System.Text.Encoding.UTF7.GetString(b)
It will return the correct string. b
But if I use
Dim aa As String = System.Text.Encoding.UTF8.GetString(b)
Byte 251, 252 are missing from the output...
Does something understand why it is this? and when I use UTF7 and when to
use UTF8????