LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-30-2011, 12:30 AM   #1
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
Emacs encoding comment


So, I'm working on this Ruby source code file in Emacs, and I insert some UTF-8 characters in the file. When I next open the file, it has a comment like so at the top:

Code:
# -*- coding: undecided -*-
Presumably that was added by Emacs to mark which encoding is used in the file. Two questions:

1. Does any program other than emacs use this format of encoding comment to discern what encoding is being used?
2. If I wanted to change the comment so that it would assume UTF-8, what should I replace 'undecided' with? I.e., 'utf8', 'utf-8', 'UTF-8', ...?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chinese encoding not encoding in kate linuxmandrake Linux - Software 1 12-12-2010 08:50 AM
emacs + auctex - opening output PDF inside emacs buffer coenvh Linux - Newbie 1 04-29-2010 05:52 AM
Emacs: No comment syntax is defined kenneho Linux - Software 2 10-15-2008 07:19 AM
How to make konsole/terminal and emacs to recognize UTF-8 encoding? chandru.in Linux - Software 3 12-05-2007 10:40 AM
text encoding, emacs and LaTeX. bnj Linux - Newbie 2 10-13-2005 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:05 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
Open Source Consulting | Domain Registration