[fpc-devel] new string - question on usage

Michael Schnell mschnell at lumino.de
Wed Oct 12 14:40:26 CEST 2011


On 10/12/2011 02:28 PM, Sven Barth wrote:
>
> There will be a conversion. 
Meaning:
  - when it is a var parameter, am error message is issued.
  - when it is a value parameter: conversion is called
  - type cast will do a conversion
  - assignment will do a conversion (at least if the target encoding ID 
is not zero.)
  - the conversion will not happen if the source encoding ID is "Raw"

Correct ?


> Like was done before the code page aware string as well. And then you 
> might experience data loss if you e.g. cast a UnicodeString with some 
> fancy Unicode characters to an encoding which doesn't support these 
> characters (same as before).
Of course.

-Michael



More information about the fpc-devel mailing list