On Thu, 5 Nov 2015, Marc Santhoff wrote:
On Do, 2015-11-05 at 14:25 +0100, Marc Santhoff wrote:
On Mi, 2015-11-04 at 19:01 +0100, Marc Santhoff wrote:
Hi,
when trying to us a TSdfDataset connected to a TDatasource and a
TDBGrid, only some unicode symbols are shown (those little squares
holding four tiny numbers) for string data.
The data files are encoded iso-8859 but I have found no switch for
setting the encoding of TDataSource or TSdfDataset. When loading a
TFileStream is used, but I did not find a property or method for
changing the encoding on the fly in it, either.
How can I fix it?
Digging some TSream*-Classes in Unit Classes I think one way to go would
t
be to make a TString-descendant of some type, maybe TCustomMemoryStream
TStream-
or TStringStream and add a method "ReadUTF8()" or similar. Or directly
override the Read()-Method for returning converted Strings.
Still hoping for a more simple solution, any ideas or hints?
None. It is an old problem, see:
http://bugs.freepascal.org/view.php?id=16587
This can be easily solved when we start the Unicode RTL and classes.
Michael.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus