Re: [Lazarus] Guessing the encoding of some text

2017-11-16 Thread Torsten Bonde Christiansen via Lazarus
On 2017-11-17 00:57, Zoë Peterson via Lazarus wrote: On 11/16/2017 4:25 AM, Torsten Bonde Christiansen via Lazarus wrote: Does Lazarus or FPC include other convinient tools that may detect the encoding of (the content of) a file? What do others do in this situation? If you need

[Lazarus] Apply diff in mantis, CF_text/CF_bitmap

2017-11-16 Thread Alexey via Lazarus
Pls see and apply it, posted long ago: https://bugs.freepascal.org/view.php?id=27194 -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Guessing the encoding of some text

2017-11-16 Thread Zoë Peterson via Lazarus
On 11/16/2017 4:25 AM, Torsten Bonde Christiansen via Lazarus wrote: Does Lazarus or FPC include other convinient tools that may detect the encoding of (the content of) a file? What do others do in this situation? If you need cross-platform, this works with some trivial changes:

Re: [Lazarus] Control DBGrid row position

2017-11-16 Thread Luca Olivetti via Lazarus
El 16/11/17 a les 16:28, Luca Olivetti via Lazarus ha escrit: Is there a way to control the position of the selected row in a TDBGrid? With a TStringGrid you can control it with TopRow, but TDBGrid has no such property and I couldn't find a way to do what I want. I understand that TopRow

[Lazarus] Control DBGrid row position

2017-11-16 Thread Luca Olivetti via Lazarus
Is there a way to control the position of the selected row in a TDBGrid? With a TStringGrid you can control it with TopRow, but TDBGrid has no such property and I couldn't find a way to do what I want. I understand that TopRow wouldn't make sense in a DBGrid, but I need the same

Re: [Lazarus] Guessing the encoding of some text

2017-11-16 Thread Mattias Gaertner via Lazarus
On Thu, 16 Nov 2017 14:02:57 +0300 Alexey via Lazarus wrote: > >What do others do in this situation? > > I use > https://github.com/Alexey-T/ATSynEdit/blob/master/atsynedit/atstringproc_utf8detect.pas That's checking if a zeroed string is valid UTF-8.

Re: [Lazarus] Guessing the encoding of some text

2017-11-16 Thread José Mejuto via Lazarus
El 16/11/2017 a las 11:25, Torsten Bonde Christiansen via Lazarus escribió: Hi List. I am reading some text of some .csv files, but the encoding of the files is not always the same. In fact it may vary greatly from a lot of european encodings, UTF8 and asian encoding. Hello, Some years

Re: [Lazarus] Guessing the encoding of some text

2017-11-16 Thread Alexey via Lazarus
>What do others do in this situation? I use https://github.com/Alexey-T/ATSynEdit/blob/master/atsynedit/atstringproc_utf8detect.pas -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

[Lazarus] Guessing the encoding of some text

2017-11-16 Thread Torsten Bonde Christiansen via Lazarus
Hi List. I am reading some text of some .csv files, but the encoding of the files is not always the same. In fact it may vary greatly from a lot of european encodings, UTF8 and asian encoding. I have tried using the function GuessEncoding(..) in LConvEncoding.pas, but from the source code I