[fpc-pascal] Unicode file routines proposal

Marco van de Voort marcov at stack.nl
Mon Jun 30 15:09:58 CEST 2008


> Marco van de Voort schreef:
> >> It looks simple to me, there are just 2 ways to go, either utf-8 or
> >> utf-16. 
> > 
> > There are more possibilities:
> > - native encoding (utf-8 on *nix, utf-16 on windows)
> > - have two types.
> 
> How can one write portable code with these options?

How can you consider yourself portable by picking one systems encoding, and
emulating it on others?

Note also that reliance on encoding is way less important, since fewer
people will be parsing through strings manually (simply because it is more
difficult)



More information about the fpc-pascal mailing list