On 10 Nov 2007, at 15:24, Felipe Monteiro de Carvalho wrote:

utf8decode returns string I assume?

It returns WideString. Is there a function to manually alloc a
widestring like StrAlloc?

Assign it to a variable of the type widestring. If you cannot this variable in scope the whole time, you have to allocate enough memory (length(widestring)*2+2) and copy the contents (including the terminating zero) to the allocated memory block.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to