9 More Discussions You Might Find Interesting
1. Red Hat
am running the following code on a RHEL 6.6 box to list which charsets are loaded and which are available:
my @list = Encode->encodings();
my @all_encodings = Encode->encodings(":all");
... (3 Replies)
Discussion started by: Fundix
2. UNIX for Dummies Questions & Answers
I'm facing an issue when i ssh to a router and exporting the output to a txt file.
ssh firstname.lastname@example.org -a | tee file.txt
Closing the connection and opening the .txt file. There are strange 'domino's' appearing here and there. See the screenshot below.
... (2 Replies)
Discussion started by: Antonio Fargas
3. Shell Programming and Scripting
Can someone help to command or program to transfer the file from windows to Unix server and from one unix server to another Unix server in secure way.
I would request no samba client. (4 Replies)
Discussion started by: yadavricky
4. UNIX for Advanced & Expert Users
Hello Experts, please help to provide any insight as I am facing issue migrating java application from hpux to redhat. The java program is using InputStreamReader to read a file without specifying any charset parameter.
However, in new Linux Redhat 5.6 environent, when reading a file that... (1 Reply)
Discussion started by: sonic_air
5. UNIX for Dummies Questions & Answers
what's the relationship among locale, glibc, charset, charmap and fonts?
why locale needs to be generated by glibc? how?
what are in the locale-archive file?
and what are in font files? (0 Replies)
Discussion started by: vistastar
6. Shell Programming and Scripting
I'm using a tree command in a script that for me outputs:-
| - - DIRECTORYNAME
However a different user is getting the following output:-
aaa (actually with an umlat above them) DIRECTORYNAME
I'm not sure where this could be coming from, any ideas anyone? (0 Replies)
Discussion started by: Bashingaway
7. UNIX for Dummies Questions & Answers
How does unix system administration, unix programming, unix network programming differ?
Please help. (0 Replies)
Discussion started by: thulasidharan2k
8. Shell Programming and Scripting
My objective is to find out the charset using which a file is encoded. (The OS is SunOs)
I have set NLS_LANG to AR8MSWIN1256 and spooled the file.
When viewed the file using vi, I saw the following
I then inserted the line containing these codes in a... (3 Replies)
Discussion started by: sridhar_423
I am a newbie to Linux(Suse).I am facing a problem with 'sqlldr' utility while trying to upload data to Database tables.My backend is Oracle and is using the UTF8 encoding format.I am trying to load a datafile which contains some Western European Characters.While loading am getting an... (0 Replies)
Discussion started by: DILEEP410
Encode::Detect::Detector(3pm) User Contributed Perl Documentation Encode::Detect::Detector(3pm)
Encode::Detect::Detector - Detects the encoding of data
my $charset = detect($octets);
my $d = new Encode::Detect::Detector;
my $charset = $d->getresult;
This module provides an interface to Mozilla's universal charset detector, which detects the charset used to encode data.
$charset = Encode::Detect::Detector->detect($octets)
Detect the charset used to encode the data in $octets and return the charset's name. Returns undef if the charset cannot be determined
with sufficient confidence.
$d = Encode::Detect::Detector->new()
Creates a new "Encode::Detect::Detector" object and returns it.
Provides an additional chunk of data to be examined by the detector. May be called multiple times.
Returns zero on success, nonzero if a memory allocation failed.
Informs the detector that there is no more data to be examined. In many cases, this is necessary in order for the detector to make a
decision on the charset.
Resets the detector to its initial state.
Returns the name of the detected charset or "undef" if no charset has (yet) been decided upon. May be called at any time.
John Gardiner Myers <email@example.com>
For help and thank you notes, e-mail the author directly. To report a bug, submit a patch, or add to the wishlist please visit the CPAN
bug manager at: http://rt.cpan.org
perl v5.14.2 2011-11-15 Encode::Detect::Detector(3pm)