CodePudding user response:
How out of this, the code is the use of codingCodePudding user response:
If sure UTF8Encode is try to delete the last byte or the first byte.CodePudding user response:
I wonder if the original poster with Delphi several,I met this situation before (Delphi7) is the first string is assigned to a widestring variables, reoccupy widestring variables to do UTF8Encode, try the original poster is interested in? Assume that the source string is A,
VAR B, R: WIDESTRING;
The BEGIN
B:=A;
R:=UTF8ENCODE (B);
.