[fpc-pascal] Help making code unicode capable
jonas.maebe at elis.ugent.be
Sat Nov 10 15:32:54 CET 2007
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.
More information about the fpc-pascal