in reply to Re: issue with Encode::Guess
in thread issue with Encode::Guess
Hello @lnickt,
thanks first.
Concerning your welcome to monastery I am many years into it. But thanks nonetheless.
An early concern about late mention before I forget it: Test::utf8
<cite>This module is a collection of tests useful for dealing with utf8 strings in Perl.</cite>I read: "dealing with utf8 strings"
This is not, what I want. I want to deal with "non-utf8" strings. They should become utf8 strings but I don't want to deal with it. I guess that's quite different.
To do an early "over all": I don't understand everything you say, I am also not native english.
So I try to answer things you name as far as I can. Something you write is irritating for me. Besides I think you're running to make the things too big, they aren't as big. They are small.
to answer your mentions:
2utf8.pl IS ARGV[0]: Quell-DCM-new.dcm 862-- length(data)>0 Unknown encoding: $encodings_test at C:/EC-Apps/strawberry/perl/lib/Encode/Guess.pm line 119.
I've had a look on SSCCE.
<cite>An even simpler SSCCE</cite>
I don't know, what you want to tell me with this. Actually I am not able to see a relation to my case. If there is one, then sorry.
<cite>Your code looks as though you first spent time</cite>
I'm aware that different people have different strategies for software development. As for my programming experience since 1986 I believe that's a good idea to move emerging problems to solved section, every thing that emerges that is solved will not be a problem in the future.
<cite>Your script, judging by its name, appears actually to be trying to decide if a file is encoded in UTF-8.</cite>
No. my script in the future should convert some hundred files from any encoding to UTF-8. Because the files are output of at mindst 5 different tools it is no way to decide by hand what encoding they are. It has to be done by a guess.
But in this first step I want to do this first step and guess what encoding they are. And for this I tought it would be a good idea to use a standard package. Maybe I've choosen the wrong.
There's no more to say. Regards.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: issue with Encode::Guess
by 1nickt (Canon) on Apr 05, 2020 at 16:13 UTC |