Sponsored Content
Operating Systems Linux Installing (some other) Linux on Archos PMA400. Post 302106015 by Artemiy on Tuesday 6th of February 2007 04:39:56 AM
Old 02-06-2007
Thanks... Guess it should be possible, yeah, after all people succeeded in installing Linux on Pocket PC's...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Installing Programs In Linux

I am not sure how to install a program in linux. I have Java 2 on a CD the CD Mounts but then I'm lost. What do I need to do so that the programm will install on my system? Thank you, Monkette (6 Replies)
Discussion started by: kdelph
6 Replies

2. UNIX for Dummies Questions & Answers

Installing RedHat Linux 7

Hey everybody. Its been awhile since I last posted but in short I am now in posession of RedHat Linux 7.0 which I got from a book called the RedHat 7 Bible. As this is not an official distribution I cannot get product support from RedHat so I decided to try here. I have three computers. I... (2 Replies)
Discussion started by: TheGoof
2 Replies

3. UNIX for Dummies Questions & Answers

installing LINUX

I would like to install LINUX alongside my XP environment, but XP uses NTFS file system which cannot be re-partitioned without destroying what is already on my drive. I don't want to do that right now. Can I install LINUX on an external firewire drive such that I will be able to select XP or... (1 Reply)
Discussion started by: pkappaz
1 Replies

4. Ubuntu

Needs for installing Arch/Linux?

I'm pretty new to *nix systems and been using Ubuntu and Debian for a while but think it's pretty much 'overkill' lauching any of these systems. I've always been in need of a simple system, with a simple X where I can get the necessary programs myself. Yesterday I read about Arch (and it got me).... (1 Reply)
Discussion started by: riwa
1 Replies

5. SuSE

Issue installing linux

I apologize in advance if this is the wrong forum for this Alright, I am a long time Microsoft user (games of course). I have installed Linux in the past, but not on this computer. Brand new computer, have been using it extensively for the past month or so, and recently I just had the urge... (9 Replies)
Discussion started by: Wyzer1
9 Replies

6. UNIX for Dummies Questions & Answers

Installing LINUX on a separate HD

For the last few installations of Linux I have installed it with XP via a dual boot set up on one HD. Now I have purchased a 2nd HD and would like to install Linux on the 2nd HD and keep the first HD for XP. How do I go about setting up the HD's for this? Do I have to create a small partition on... (2 Replies)
Discussion started by: nistleloy
2 Replies

7. Red Hat

Installing LINUX KS from USB

:confused:Hello All, We are trying to install RHEL6 via USB using KICKSTART installation. We had following configuration: Below is the entry of isolinux.cfg file : menu label ^Kickstart Installation:via USB kernel vmlinuz append initrd=initrd.img ks=cdrom:/ks.cfg Below is the entry... (2 Replies)
Discussion started by: NIMISH AGARWAL
2 Replies

8. Red Hat

Installing OpenOffice in Linux

Dear All, Here is my redhat uname -a and cat /etc/redhat-release output Linux hpclnpm.com 2.6.18-128.el5 #1 SMP Wed Dec 17 11:42:39 EST 2008 i686 i686 i386 GNU/Linux 2.cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.3 (Tikanga) After running all the... (3 Replies)
Discussion started by: monojcool
3 Replies

9. Red Hat

Installing Linux packages

hi, I wants to customize the Linux packages after installting the Linux OS... I am not able to install the packages packages in GUI mode System-> Administration->add/remove software.i want to install some desktop and dabase related packages how do i install those packages... I use RHEL6.2... (1 Reply)
Discussion started by: Rahulne25
1 Replies

10. Red Hat

Installing realvnc on Linux

Hi, I'm running Oracle Linux 7 - 64 bit (PRODUCT_VERSION=7.2). I'm currently using RealVNC 5.3.0. I've upgraded this several times, put the instructions in notepad...I can't find them. I've downloaded RealVNC 5.3.1 and want to upgrade from 5.3.0 to 5.3.1. Since oracle Linux is very... (2 Replies)
Discussion started by: Janning
2 Replies
Encode::Guess(3pm)					User Contributed Perl Documentation					Encode::Guess(3pm)

NAME
Encode::Guess -- Guesses encoding from data SYNOPSIS
# if you are sure $data won't contain anything bogus use Encode; use Encode::Guess qw/euc-jp shiftjis 7bit-jis/; my $utf8 = decode("Guess", $data); my $data = encode("Guess", $utf8); # this doesn't work! # more elaborate way use Encode::Guess; my $enc = guess_encoding($data, qw/euc-jp shiftjis 7bit-jis/); ref($enc) or die "Can't guess: $enc"; # trap error this way $utf8 = $enc->decode($data); # or $utf8 = decode($enc->name, $data) ABSTRACT
Encode::Guess enables you to guess in what encoding a given data is encoded, or at least tries to. DESCRIPTION
By default, it checks only ascii, utf8 and UTF-16/32 with BOM. use Encode::Guess; # ascii/utf8/BOMed UTF To use it more practically, you have to give the names of encodings to check (suspects as follows). The name of suspects can either be canonical names or aliases. CAVEAT: Unlike UTF-(16|32), BOM in utf8 is NOT AUTOMATICALLY STRIPPED. # tries all major Japanese Encodings as well use Encode::Guess qw/euc-jp shiftjis 7bit-jis/; If the $Encode::Guess::NoUTFAutoGuess variable is set to a true value, no heuristics will be applied to UTF8/16/32, and the result will be limited to the suspects and "ascii". Encode::Guess->set_suspects You can also change the internal suspects list via "set_suspects" method. use Encode::Guess; Encode::Guess->set_suspects(qw/euc-jp shiftjis 7bit-jis/); Encode::Guess->add_suspects Or you can use "add_suspects" method. The difference is that "set_suspects" flushes the current suspects list while "add_suspects" adds. use Encode::Guess; Encode::Guess->add_suspects(qw/euc-jp shiftjis 7bit-jis/); # now the suspects are euc-jp,shiftjis,7bit-jis, AND # euc-kr,euc-cn, and big5-eten Encode::Guess->add_suspects(qw/euc-kr euc-cn big5-eten/); Encode::decode("Guess" ...) When you are content with suspects list, you can now my $utf8 = Encode::decode("Guess", $data); Encode::Guess->guess($data) But it will croak if: o Two or more suspects remain o No suspects left So you should instead try this; my $decoder = Encode::Guess->guess($data); On success, $decoder is an object that is documented in Encode::Encoding. So you can now do this; my $utf8 = $decoder->decode($data); On failure, $decoder now contains an error message so the whole thing would be as follows; my $decoder = Encode::Guess->guess($data); die $decoder unless ref($decoder); my $utf8 = $decoder->decode($data); guess_encoding($data, [, list of suspects]) You can also try "guess_encoding" function which is exported by default. It takes $data to check and it also takes the list of suspects by option. The optional suspect list is not reflected to the internal suspects list. my $decoder = guess_encoding($data, qw/euc-jp euc-kr euc-cn/); die $decoder unless ref($decoder); my $utf8 = $decoder->decode($data); # check only ascii, utf8 and UTF-(16|32) with BOM my $decoder = guess_encoding($data); CAVEATS
o Because of the algorithm used, ISO-8859 series and other single-byte encodings do not work well unless either one of ISO-8859 is the only one suspect (besides ascii and utf8). use Encode::Guess; # perhaps ok my $decoder = guess_encoding($data, 'latin1'); # definitely NOT ok my $decoder = guess_encoding($data, qw/latin1 greek/); The reason is that Encode::Guess guesses encoding by trial and error. It first splits $data into lines and tries to decode the line for each suspect. It keeps it going until all but one encoding is eliminated out of suspects list. ISO-8859 series is just too successful for most cases (because it fills almost all code points in x00-xff). o Do not mix national standard encodings and the corresponding vendor encodings. # a very bad idea my $decoder = guess_encoding($data, qw/shiftjis MacJapanese cp932/); The reason is that vendor encoding is usually a superset of national standard so it becomes too ambiguous for most cases. o On the other hand, mixing various national standard encodings automagically works unless $data is too short to allow for guessing. # This is ok if $data is long enough my $decoder = guess_encoding($data, qw/euc-cn euc-jp shiftjis 7bit-jis euc-kr big5-eten/); o DO NOT PUT TOO MANY SUSPECTS! Don't you try something like this! my $decoder = guess_encoding($data, Encode->encodings(":all")); It is, after all, just a guess. You should alway be explicit when it comes to encodings. But there are some, especially Japanese, environment that guess-coding is a must. Use this module with care. TO DO
Encode::Guess does not work on EBCDIC platforms. SEE ALSO
Encode, Encode::Encoding perl v5.14.2 2011-08-09 Encode::Guess(3pm)
All times are GMT -4. The time now is 10:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy