LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 11-24-2004, 05:23 AM   #1
brynjarh
Member
 
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 [ http://binni.gothicmars.com/simplicity.css ] 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, 06:20 AM   #2
b0uncer
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"
 
  


Reply


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 12:11 PM
X11 / UTF-8 locale seems missing 'fr_FR.UTF-8' chrsitophermann Debian 11 07-17-2004 03:04 PM
I need perlscript to convert text file in UTF-16 cccc Programming 3 07-04-2004 05:08 AM
convert CSV (TEXT) files to UTF-16 cccc Programming 1 07-01-2004 02:54 AM
UTF-8 problem (I think) GomiCowboy Red Hat 2 04-02-2004 11:33 AM


All times are GMT -5. The time now is 11:00 PM.

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