Read/Write Component lazarus / 31-LCL ---------------------------------------------------------------------- LA.Center · 2011-09-08 10:02 I am saving forms in text format to a file and read it again to build a form. Now when I use binary format all Unicode Chars work correct, but when I use text all Unicode Chars get ???. stream.WriteComponent -> binary stream.ReadComponent -> binary but when ObjectBinaryToText -> its not working well. is there a way to fix this, I mean Lazarus uses txt lfm and it seams to work fine with Unicode. Thx ---------------------------------------------------------------------- Leledumbo · 2011-09-08 16:54 Have you learned $(LazarusDir)/examples/componentstreaming or the more general $(LazarusDir)/examples/pascalstream (seems to exist on svn/snapshot only)? ---------------------------------------------------------------------- LA.Center · 2011-09-08 22:36 thx for the info, but I could not find it. Is there a other way of component serialization than stream.Write/ReadComponent? ---------------------------------------------------------------------- Leledumbo · 2011-09-09 03:35 Quotethx for the info, but I could not find itHow come ? At least the first one has been existing for a long time, nothing has "stream" name under examples directory? ---------------------------------------------------------------------- LA.Center · 2011-09-09 20:22 OK I triple checked there is nothing about streaming components, do I look in the wrong place. Can you give me an url where to look? ---------------------------------------------------------------------- DirkS · 2011-09-09 20:47 Quote from: plusplus on September 09, 2011, 10:22:20 pmOK I triple checked there is nothing about streaming components, do I look in the wrong place. Can you give me an url where to look? Leledumbo was referring to the example code that comes with Lazarus. Did you check there? Gr. Dirk. ---------------------------------------------------------------------- LA.Center · 2011-09-09 21:55 yes, but it does not matter anymore, I just use two files now. Text version to read what the form is all about and Bin version to actually reconstruct the form. Thx for all the info and effort to help anyway ---------------------------------------------------------------------- Leledumbo · 2011-09-10 08:57 Here I attach them from my installation ---------------------------------------------------------------------- LA.Center · 2011-09-10 23:33 thx, this really helped me.