Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-24-2004, 04:23 AM   #1
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Rep: Reputation: 30
[Enter] in text documents diffrent on Windows and Linux? UTF-8/UTF-16 problem or?

I have noticed that the few times I have had to work on computers with one of the Windows operating systems my text files have two boxes instead of [Enter], you can see an example of them in this [ ] file if you are on a Windows machine.

I don't know much about how text works, how it is encoded, but is this a problem with the fact that Linux uses UTF-8 to encode text files while Windows uses UTF-16?
Old 11-24-2004, 05:20 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
yup, linux and windows use different kinds of line terminators. when you create a text file in linux, or in windows, you'll have to "encode" it so you can use it smoothly on the other. for linux there is a tool called "dos2unix" which handles the "translation" in both ways (so it's actually both dos2unix and unix2dos).

at least in ArchLinux the package containing dos2unix is called "hd2u". so try to find it or "dos2unix"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I know how a file is encoded? UTF-8, UTF-16, etc.. ?? brynjarh Linux - General 1 12-03-2004 11:11 AM
X11 / UTF-8 locale seems missing 'fr_FR.UTF-8' chrsitophermann Debian 11 07-17-2004 02:04 PM
I need perlscript to convert text file in UTF-16 cccc Programming 3 07-04-2004 04:08 AM
convert CSV (TEXT) files to UTF-16 cccc Programming 1 07-01-2004 01:54 AM
UTF-8 problem (I think) GomiCowboy Red Hat 2 04-02-2004 10:33 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration