yes, I use Lazarus. and "string" var holds raw lines of text. Usually i call WS:= UTF8Decode(s).for pure ASCII, i want faster call, and so SConvertUtf8ToWideForAscii.I think simple assignment is slower than SConvertUtf8ToWideForAscii?
No it is not. I just timed it. A simple assignment is faster by about 20% (mse: take note)
For ASCII length(utf8) = length(utf16).
@msethanks...