unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Juraj Kubelka <Juraj.Kubelka@email.cz>
Subject: Problem with coding system and emacsclient
Date: Thu, 19 Aug 2004 10:12:17 +0200	[thread overview]
Message-ID: <20040819081217.GA5970@cesta> (raw)

Hi!

I have problem with opening files with emacsclient in different
coding.

My default coding system is:

------- M-x describe-coding-system RET RET
Coding system for saving this buffer:
  2 -- iso-8859-2 (alias of iso-latin-2)
Default coding system (for new files):
  2 -- iso-8859-2 (alias of iso-latin-2)
Coding system for keyboard input:
  nil
Coding system for terminal output:
  2 -- iso-8859-2 (alias of iso-latin-2)
Defaults for subprocess I/O:
  decoding: 2 -- iso-8859-2 (alias of iso-latin-2)
  encoding: 2 -- iso-8859-2 (alias of iso-latin-2)

Priority order for recognizing coding systems when reading files:
  1. iso-8859-2 (alias of iso-latin-2)
  2. iso-latin-1 (alias: iso-8859-1 latin-1)
  3. iso-2022-jp (alias: junet)
  4. iso-2022-7bit 
  5. iso-2022-7bit-lock (alias: iso-2022-int-1)
  6. iso-2022-8bit-ss2 
  7. emacs-mule 
  8. raw-text 
  9. japanese-shift-jis (alias: shift_jis sjis)
  10. chinese-big5 (alias: big5 cn-big5)
  11. no-conversion (alias: binary)
  12. mule-utf-8 (alias: utf-8)
-------

I can open file with coding system cp1250:

C-x RET c cp1250-unix RET C-x C-f file_coding.txt

Everything is correct. Now I save and close file.

I can open file again with same sequence above. But when I want open
file with emacsclient I cannot use prefix "C-x RET c cp1250-unix RET"
and file is opened in "Unibyte raw-coding".

------- M-x describe-coding-system RET RET
Coding system for saving this buffer:
  t -- raw-text
-------

Characters are strange of course. I can use "C-x RET f cp1250-unix
RET" and file is now opened in "Unibyte cp1250-unix". 

------- M-x describe-coding-system RET RET
Coding system for saving this buffer:
  D -- cp1250-unix
-------

But old text is still displayed strange. And new characters added to
file are strange too. 

Do you have any solution for it? How open file in different coding with
emacsclient (I know coding of file)?

Thanks.

Jura

-- 
+ Juraj Kubelka +++++++++++++++++++++
+ emailto:Juraj.Kubelka at email.cz +
+ jabber://cesta at jabber.cz       +
+ icq: 25932918                     +
+++++++++++++++++++++++++++++++++++++

             reply	other threads:[~2004-08-19  8:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-19  8:12 Juraj Kubelka [this message]
     [not found] <mailman.1886.1092903443.2011.help-gnu-emacs@gnu.org>
2004-08-21 10:55 ` Problem with coding system and emacsclient Oliver Scholz
2004-08-23 16:46   ` Kevin Rodgers
2004-08-31 12:33     ` Juraj Kubelka
     [not found]     ` <mailman.849.1093955960.1998.help-gnu-emacs@gnu.org>
2004-09-01  2:55       ` Edward Casey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040819081217.GA5970@cesta \
    --to=juraj.kubelka@email.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).