Home > Back-end >  UTF8 encoding issues
UTF8 encoding issues

Time:10-06

UTF8Encode when encounter an odd number of characters will be garbled '? ', there is no other solution

CodePudding user response:

How out of this, the code is the use of coding

CodePudding 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);
.
  • Related