On Mon, Oct 17, 2016 at 2:47 PM, Bart wrote:
> As explained there is no certain way.
> Lazarus comes with lconvencoding unit which has a guessencoding function.
> Maybe this can be of some help to you?
I'd not seen this unit before. Maybe this is the short way to do what
I wanna do.
Thanks.
Mar
On Mon, Oct 17, 2016 at 11:21 AM, Graeme Geldenhuys
wrote:
> No such function [with exact results] exists anywhere (no matter the
> programming language). The best programs can do is to interrogate the
> contents of a file and make a best guess. How they do that
> interrogation -- I unfortunately
On Mon, Oct 17, 2016 at 11:19 AM, Jonas Maebe wrote:
> There are some heuristics you could try to apply (see e.g.
> http://chsdet.sourceforge.net ), but in general it is impossible to know
> for sure what encoding has been used
Interesting project, I'll take a look, thanks.
Marcos Douglas
_
On 10/17/16, Marcos Douglas B. Santos wrote:
> Is there a way to know what encoding was used at a string?
>
> My system are receiving some files and I don't know the encoding.
> I would like to know and then, convert it.
As explained there is no certain way.
Lazarus comes with lconvencoding unit
On 2016-10-17 14:14, Marcos Douglas B. Santos wrote:
> My system are receiving some files and I don't know the encoding.
> I would like to know and then, convert it.
No such function [with exact results] exists anywhere (no matter the
programming language). The best programs can do is to interroga
Marcos Douglas B. Santos wrote:
> Is there a way to know what encoding was used at a string?
>
> My system are receiving some files and I don't know the encoding.
> I would like to know and then, convert it.
There are some heuristics you could try to apply (see e.g.
http://chsdet.sourceforge.net