Change in TStrings.LoadFromFile/LoadFromStream encoding handling

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Change in TStrings.LoadFromFile/LoadFromStream encoding handling

Michael Van Canneyt

Hello,

Just a heads-up.

The LoadFromStream and LoadFromFile calls of TStrings have been changed.
They now by default take into account encoding.

This change was necessary for Delphi compatibility and to be more in line
with the TStringStream.Create endocing aware constructors.

If you don't mess with the default encodings, then nothing should change.
If you do change encodings then you may need to check your code.

You can always revert to the old behaviour by passing a True value for the
new IgnoreEncoding parameter to LoadFromStream/LoadFromFile.

Change is documented at:
http://wiki.freepascal.org/User_Changes_Trunk#Classes_TStrings.LoadFromStream.2FFile_encoding_handling


Michael.
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal