Re: [fpc-pascal] XML read

2011-06-13 Thread Marcos Douglas
On Sat, Jun 11, 2011 at 5:52 AM, Michael Van Canneyt wrote: > > > On Fri, 10 Jun 2011, Marcos Douglas wrote: > >> Hi, >> What is the more simpler way to get all text in each paragraph in the >> XML below, using fcl-xml? >> For example: >> >> Page 1 >> --- >> Para 1: >> -1524 >> -88

Re: [fpc-pascal] XML read

2011-06-13 Thread Bart
I have some code that reads/writes an addressbook in XML format. I can attach if if you think it may be usefull to you. Bart On 6/13/11, Marcos Douglas wrote: > On Sat, Jun 11, 2011 at 5:52 AM, Michael Van Canneyt > wrote: >> >> >> On Fri, 10 Jun 2011, Marcos Douglas wrote: >> >>> Hi, >>> What

Re: [fpc-pascal] XML read

2011-06-13 Thread Marcos Douglas
On Mon, Jun 13, 2011 at 11:47 AM, Bart wrote: > > I have some code that reads/writes an addressbook in XML format. > I can attach if if you think it may be usefull to you. OK, if you can I appreciate that. Some functions of fcl-web returns a new object... I have to be careful with memory leaks.

Re: [fpc-pascal] XML read

2011-06-13 Thread Bart
Hi Marcos, > OK, if you can I appreciate that. > Some functions of fcl-web returns a new object... I have to be careful > with memory leaks. See: addressbook.pp. Mind you, my code isn't web related, it just handles an xml-file. Bart unit AddressBook; {$mode objfpc}{$H+} interface uses Class

[fpc-pascal] Pseudographics in FPC-IDE

2011-06-13 Thread Anton Shepelev
Hello all, I have installed FPC on a Linux machine to find that in the virtual terminal (true text-mode, not GUI-based emulator) FP-IDE does not dispaly pseudographics correctly. It turned out that changes to the SFM (Screen Font Map) doesn't have any effect inside the IDE, and I count'd un

Re: [fpc-pascal] Pseudographics in FPC-IDE

2011-06-13 Thread Nikolay Nikolov
On 06/13/2011 08:39 PM, Anton Shepelev wrote: Hello all, I have installed FPC on a Linux machine to find that in the virtual terminal (true text-mode, not GUI-based emulator) FP-IDE does not dispaly pseudographics correctly. It turned out that changes to the SFM (Screen Font Map) doesn't

Re: [fpc-pascal] Pseudographics in FPC-IDE

2011-06-13 Thread Anton Shepelev
Nikolay Nikolov: > Modern FPC versions should support UTF-8 output for the > IDE. I made a patch for this, that was included in fpc > 2.4.2 IIRC. Which FPC version are you using and on which > linux distro/version? What is the value of the LANG envi- > ronment variable? I am using FPC 2

Re: [fpc-pascal] Pseudographics in FPC-IDE

2011-06-13 Thread Nikolay Nikolov
On 06/13/2011 09:17 PM, Anton Shepelev wrote: Nikolay Nikolov: Modern FPC versions should support UTF-8 output for the IDE. I made a patch for this, that was included in fpc 2.4.2 IIRC. Which FPC version are you using and on which linux distro/version? What is the value of the LANG en

Re: [fpc-pascal] Pseudographics in FPC-IDE

2011-06-13 Thread Anton Shepelev
Nikolay Nikolov: > Try changing it to LANG=en_US.UTF-8 Thank you very much, it works well now. Maybe this should be mentioned on the WIKI? Anton ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/

Re: [fpc-pascal] XML read

2011-06-13 Thread Bart
Attached a sample xml file created with TAddressBook. Bart Versie 3.0.0 RC1 Copyright 2011 by Flying Sheep Inc. & Bart Broersma LET OP: Dit bestand moet in UTF-8 codering opgeslagen worden! Name_1 FirstName_1 Address_1 ZIP_1 City_1