@@ -1515,6 +1515,7 @@ function UnicodeToUtf8(Dest: PChar; MaxDestBytes: SizeUInt; Source: PWideChar; S
else
inc(j,3);
end;
+ inc(i);
result:=j+1;