all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Boylan, Ross" <Ross.Boylan@ucsf.edu>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Unable to match octal character
Date: Wed, 13 Apr 2016 20:22:08 +0000	[thread overview]
Message-ID: <F1F13E14A610474196571953929C02090C0CBA01@ex08.net.ucsf.edu> (raw)

I have a file with some characters that display in the emacs buffer as \203.  Yet when I search for that, using
C-s C-q 203 <ret>
I can't match it.  Likewise if I use search and replace.

I have verified that \203 is the display of a single character both by using the arrow key (it's a single step to move over it) and by searching on the literal string \203 or 203.

What's going on?

When I put the cursor on one of these characters and do describe-char I get
            position: 474 of 48736 (1%), column: 25
            character: \203 (displayed as \203) (codepoint 4194179, #o17777603, #x3fff83)
    preferred charset: tis620-2533 (TIS620.2533)
code point in charset: 0x83
               syntax: w        which means: word
             category: L:Left-to-right (strong)
             to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
          buffer code: #x83
            file code: #x83 (encoded by coding system raw-text-unix)
              display: not encodable for terminal

Character code properties: customize what to show
  general-category: Cn (Other, Not Assigned)
  decomposition: (4194179) ('?')

Is the fact that the codepoint is not 203 significant?

History of the file:
SAS running on MS Windows produced rtf output.  SAS has its own font it likes to use,
and the horizontal bar used in tables does not travel well (even on Windows).  That's the character that's causing trouble.
Opened in Wordpad on Windows and exported text.
Move the file to Debian GNU/Linux (UTF-8 environment) and opened the text file in emacs 24.4.1.

Using a slightly different procedure I was able to replace octal characters:
Started with same rtf output.
On linux ran unrtf -- text to convert to text.
Open text file in emacs.  In this case the character was \220.
I tried wordpad because unrtf did not preserve the column alignment

Thanks.
Ross Boylan.


             reply	other threads:[~2016-04-13 20:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-13 20:22 Boylan, Ross [this message]
2016-04-13 20:34 ` Unable to match octal character Drew Adams
2016-04-13 20:52   ` Boylan, Ross
2016-04-13 21:07     ` Drew Adams
2016-04-13 21:14       ` Boylan, Ross
     [not found] <mailman.396.1460578945.7477.help-gnu-emacs@gnu.org>
2016-04-13 20:48 ` Ben Bacarisse

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

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

  git send-email \
    --in-reply-to=F1F13E14A610474196571953929C02090C0CBA01@ex08.net.ucsf.edu \
    --to=ross.boylan@ucsf.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.