|
// iconv has a buffer that needs flushing, specially if the last char is not #0
|
|
// iconv has a buffer that needs flushing, specially if the last char is not #0
|
|
iconv(H, nil, nil, @Dst, @Outlen);
|
|
iconv(H, nil, nil, @Dst, @Outlen);
|
|
SetLength(Res, Length(Res)+InLen*2+5); // 5 is minimally one utf-8 char
|
|
SetLength(Res, Length(Res)+InLen*2+5); // 5 is minimally one utf-8 char
|