General :: Auto Detect Text File Encoding ?

Jun 24, 2011

There are many plain text files which were encoded in variant charsets.

I want to convert them all to UTF-8, but before running iconv, I need to know its original encoding. Most browsers have an Auto Detect option in encodings, however, I can't check those text files one by one because there are too many.

Only having known the original encoding, I then can convert the texts by iconv -f DETECTED_CHARSET -t utf-8.

Is there any utility to detect the encoding of plain text files? It DOES NOT have to be 100% perfect, I don't mind if there're 100 files misconverted in 1,000,000 files.

View 3 Replies


ADVERTISEMENT

General :: Convert A Windows Like Text File Into *nix Like Utf-8 Encoding Automately?

Mar 23, 2011

I want to convert many text files(copied from windows workstation) into utf-8 encoding file. Yes, iconv is available for it. However, I have to give source file encoding at the command line parameters! The problem is, at most case, I am not sure the source encoding of it. And, I also want to use a script to convert many files recursively.

View 2 Replies View Related

Ubuntu :: Open Office Writer - Lost File To Text Encoding?

Mar 3, 2011

I was working on a text file in open office writer last night, and this morning i tried to open it and a little thing popped up saying "ASCII Filter Options," prompting me for which character set, language and default fonts I wanted to use. (only after it asked if i wanted to recover the document, which i just did since it was asking me...) Now the document, which was very important, is a scrambled bunch of random characters! I cannot find the correct character set. Why is it prompting me for which character encoding I am using in the first place?

View 6 Replies View Related

General :: Numerical Encoding Of Text, By Position?

Apr 26, 2010

I have a file of words and want to encode them in a numeric form, based on position.This is best explained by example:
PEOPLE ==> 123152

Reading left to right:
P was first encountered at position 1 so it is encoded as 1.
E was first encountered at position 2 so it is encoded as 2.

[code]...

View 5 Replies View Related

General :: Search In Files Text That Is One-byte Encoding?

Sep 3, 2010

how to search in files text that is one-byte encoding? places - search for files in gnome in ubuntu searches only utf-8 text.i know one way: install wine and total commander, then search with it. what are better ways?[URL]

View 4 Replies View Related

Debian Multimedia :: XOrg Auto-detect Failing To Detect Max Screen Resolution

May 29, 2011

I've installed Squeeze 2.6.32-5-amd64 on my laptop (Alienware M17X R3, Intel i7 Sandybridge, ATI Technologies Inc Broadway [ATI Mobility Radeon HD 6800 Series])The screen is 17", with maximum resolution of 1920 x 1080. After a default install of the operating system, the maximum resolution I can select is 1280 x 1024.My research so far has suggested that I need to edit the /etc/X11/xorg.conf file and provide xorg with the necessary resolution.

Again, by default, the xorg.conf file is not created. This leads me to believe that xorg is scanning my hardware at startup and providing me with whatever it thinks is appropriate. I tried following these instructions to generate an xorg.conf file. This process created an xorg.conf file under /root/.

When I copy this xorg.conf file to /etc/X11, I get a blank (i.e. black) screen. Deleting this file restores the default resolution 1280 x 1024.This system is dual booting with Windows 7. Under windows I am able to get a 1920 x 1080 resolution, so I know my hardware is up to it.At this stage I have yet to install the drivers for the Radeon graphics card.What are my options regarding configuring xorg to give me a higher screen resolution?

View 6 Replies View Related

Software :: Gedit Has Not Been Able To Detect The Character Encoding On Ubuntu?

Nov 25, 2010

I have been trying to download a .tar.gz file for a while, and gedit says it has not been able to detect the character encloding. I am running Ubuntu 10.04 on an Acer Aspire 5730z.

View 13 Replies View Related

Ubuntu :: Using Moneydance - Error - Gedit Has Not Been Able To Detect The Character Encoding

Oct 13, 2010

Anybody using Moneydance on 10.04 ? how to install it.

I downloaded the self installer with java *moneydance_linux_x86wj.sh* from their site as they recommended but when I try to install all I get is a Gedit error :- gedit has not been able to detect the character encoding. Please check that you are not trying to open a binary file. Select a character encoding from the menu and try again.

Should I have downloaded another version

View 6 Replies View Related

Software :: Converting Text To Postscript With Encoding?

Jan 1, 2011

To convert a text file to postscript format is easy with groff:groff -Tps file >file.ps But what if the input file is utf-8 (with non English characters in it)? How can you specify the encoding to groff or do you have to pipe the file through some other command?

View 1 Replies View Related

General :: Windows - Text / Log Editor With Auto-refresh Support

Feb 8, 2010

I'm looking for a text editor / log manager of some kind that will automatically refresh a file's contents when it changes.

I have a single target log file (e.g. current.log) that is overwritten under certain circumstances and I'd like to be able to leave it displayed and not constantly have to re-open the file to get updates. Much the same as 'tail --follow=name' does in Linux.

I'm using a Windows desktop but it's a remote file so a Linux app would work just as easily.

View 4 Replies View Related

General :: Replace Text In One File With Text From Another File Using Sed?

Apr 28, 2010

How could I replace text in one file with text from another file using sed?

The text in each of the files would be surrounded by a starting and ending delimiter or a starting tag, say like /* */ so to easily find them.

View 8 Replies View Related

Ubuntu :: Wirelesse Auto-detect Is Failing

Apr 9, 2011

The first time I started ubuntu, it auto-conected to my personal wireless network. Now, when I try to connect to another wireless network, it doesn't auto-detect. Does anyone know why this happens?

View 1 Replies View Related

Networking :: Auto Detect Hosts With Nagios

Feb 17, 2011

Is it possible to configure nagios to auto detect all the hosts that belong to a network and place them in the cfg files?

View 1 Replies View Related

Networking :: DHCP Server Auto-detect

Apr 1, 2010

I have a scenario where a Debian (in this case) device will be connected to an existing LAN.What I then want said box to do, is to query the LAN to see if there is an existing DHCP server present. If there isn't one - then simply use the Debian box as the DHCP server (which works fine atm).If there is an existing one - I need the Debian box to be able to turn off it's own internal one and get it's details from the existing server (ie. change from server to client).

These action will need to be sat in the background as well - just in case another DHCP server appears on the LAN after this box does. Don't shoot me for saying it - but I know Windoze server does this. Is there a 'script/util' that anyone knows of (I am trying to do this auto-magically)?

View 2 Replies View Related

Ubuntu :: Sort The Output To A Text File So That It Prints To The Text File At 1 Process Per Line?

Feb 6, 2011

im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.

echo $(ps aux) >>out

The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.

View 5 Replies View Related

OpenSUSE Install :: Way To Turn The Terminal Auto-detect Off?

Jun 14, 2011

SuSE 11.4 is a wonderful release, but two chronic problems remain. The most serious is the inability to get Gnome to recognize an intel driver parameter specification in xorg.conf or 50-screen.conf with a predetermined, working screen specification. With the latest update that includes: [url]

Gnome will boot up in a strange resolution with a display of a pink screen and fragments of icons split and duplicated over the display. Teasing open the terminal parameter screen, terminal parameters (resolution, horizontal rate) appear to be correct. The terminal type is 'undefined', whether the screen is operating correctly or not, and any attempt to set defaults are refused. Perhaps the intel driver has not been selected by the operating system. Is there a way to specify a default screen driver?

This has been a chronic problem, now aggravated with the latest update to the point where the computer is now rendered inoperative.

Ironically, the other problem, that of the difficulty in downloading certain update files also remains. Had an elaborate update workaround procedure not been followed, the system would still be usable.

View 9 Replies View Related

Ubuntu :: Auto Detect Hard Drive Errors?

Jan 22, 2010

Someone explain this to me. I often thought in the back of my head, how do I check if my drive is bad in Linux? I always excused it thinking well I guess besides gaming that's another reason to keep a windows partition around. I boot up yesterday and Gnome was acting weird. Then, it happened. "We have detected bad sectors in your hard drive." I thought, no, you're stupid, this hard drive is less than a year old (however it was a replacement for another one that died). So I reboot.

Boot back up - Different error message. But instead of getting it a few minutes after log in, I got it right away. "We have detected potential hard drive failure." Okay, Linux. Want to play this game? Booted to Vista, downloaded Seatools to test my Seagate drive. It failed... Swapped SATA cables... it failed... So I ask - how does Linux have this auto detect capability like that? As much as I love Ubuntu, I was like there's no way it could just magically tell like that without running the Seagate program. But alas, Ubuntu was dead on target.

View 9 Replies View Related

Ubuntu :: HIPOINT Does Not Detect Wireless Devices Auto

Jul 18, 2010

I am running UBUNTU 10.04 on an X86 system 64bit. I am trying install a wireless keyboard and am not having much luck.

-My non wirelessUSB keyboard and mouse work fine.
-My wireless logictech mouse works fine without adding any special drivers/packages
-Wireless Keyboard (LX500, uses same receiver as mouse) does not work with standard config
-Adding HIDPOINT and selecting my wireless mouse and keyboard (LX500) - wireless key board does not work. Mouse still works.Since my wireless mouse worked before HIPOINT installation (64 bit), I believe HIDPOINT is not working.

HIPOINT Does not detect my wireless devices auto, must manually select them. So I believe that there is some conflict with other drivers.Can anyone point be in a direction to look? What are the typical configuation files and drivers used to configure standard USB mouse and keyboards? What are some other software that might be installed that is conflicting with HIDPOINT?

View 1 Replies View Related

Ubuntu Multimedia :: Auto Detect VGA And Switch Monitors?

Jul 31, 2010

I've HP DV 2000 laptop.
I'm trying to find out how to make my ubuntu to auto switch monitors when I connect my lcd into the vga plug and also switch the desktop bars into the new monitor and also use the laptop screen as a side screen.
In setting I can turn off my laptop screen and i'll see only on the lcd screen, but I need to configure it first, I want it to be automatically and when i plugged out the lcd it's back to normal.

View 2 Replies View Related

Ubuntu Multimedia :: Auto-detect External Monitor And Enable?

Apr 13, 2011

My netbook DOES seem to know when I plug in or remove an external monitor. Can I get it to simply auto-switch?

View 4 Replies View Related

Ubuntu :: File Name Encoding Bug On HFS+ Filesystem?

Mar 5, 2010

Linux - Ubuntu Karmic 64bit, 2.6.31-19-genericMac OS - Mac OS X Snow Leopard 10.6.2 32bit.

Steps to reprocude
1. Prepare HFS+ filesystem.
- Be sure the HFS+ fs does not have journaling.

[code]....

View 5 Replies View Related

Applications :: Display Encoding Of File?

Jan 26, 2011

I wanted to know how to determine the encoding of a file which was uploaded by FTP. I found the thread /newbie/47637-how-check-encoding-text.html which points to the right information (by using the command file) but it doesn't help me in my case. Take a look yourself:Code: # file testutf8.phptestutf8.php: PHP script text As you see, Linux (Debian Lenny in my case) detects the file as PHP script text because of the code within the file (that's my guess at least).Is there another way to check how this file was encoded?

View 1 Replies View Related

Programming :: Remove Lines In A Text File Based On Another Text File?

Jan 28, 2009

I have a text file called file1.txt containing many lines eg.

line1
line2
line3
line4
line5
line6

Then i have another text file called file2.txt contains

3
5
6

Is there a command to remove the lines in file1.txt based on the keywords in file2.txt? note: It should remove line3,line5,line6 based on 3,5,6

View 10 Replies View Related

Ubuntu :: Save File As Gbk Encoding With Gedit?

Apr 17, 2010

i want to save my file as gbk encoding with gedit,gedit can't do it, see the attachment

View 1 Replies View Related

Ubuntu :: Set Synaptic Package Manager To Auto Detect Proxy Settings For A Network?

May 24, 2010

SPM has just two options 1. Direct connection(no proxy) to internet and 2.manual proxybut my firefox cannot connect to internet with no proxy, It can connect to internet only on auto-detect proxy settings option.Right now my SPM is not working. I can ping the SPM server from my console but apt-get is not working

View 3 Replies View Related

General :: Detect If A Program Is Writing To A File?

Mar 3, 2009

I have custom software that writes to a sensitive large file when the user does something. I would like to make backup copies of The file that gets written to, but if I make a gzip of the file at the same time someone is changing something, it will corrupt the backup because some of the data will be missing, as its backed up during being written to.

a) Is there a way to detect if a file is currently being accessed/written to?
That way if its currently being accessed, I can just make the script wait until its done and then finally back it up.

b) Instead of backing up the large file while it has potential to get written to, would it be better to make a copy of the file first, then gzip the copy? This idea comes from the fact that gzipping the original takes 5-10 seconds, whereas making a copy only takes 1-2 seconds. The less time, the less chance of corruption.

c) Is there anyway to freeze a program or a file to stop it from being written to for an amount of time?

With a, b, and c together. The best solution I have to my problem would be a script that first detects rather the file is being accessed. If not, it would then freeze the file/program and then make a quick copy of it. Once the copy is created, it will unfreeze the original file/program and then go about gzipping the copy.

View 3 Replies View Related

General :: Convert An HTML Email Saved As A Text File To A PDF File From The Command Line?

Aug 23, 2011

I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.

Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?

View 1 Replies View Related

General :: How To Verify If The File Is Binary Or Text Without To Open The File

Sep 7, 2010

how to verify if the file is binary or text without to open the file

View 2 Replies View Related

General :: Change Password Using A Script File And Text File?

Jun 26, 2011

This is for educational purpose. In fact it is my lab tutorial for a subject.I want to capture the users password when he changes his password. Both new and old.This is the script i have come up with:

Code:
#!/bin/bash
echo "Changing password for user $USER."

[code]...

View 5 Replies View Related

OpenSUSE :: Gedit Can't Open Gb18030 Encoding File Correctly

Apr 28, 2010

openSUSE 11.2 Simple Chinese is supported as second language. the primary language is English. But I can't open Chinese file using gedit. it only support English? how can I solve this issue? the Chinese file is GB18030 encoding.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved