From: Andreas Schwab <schwab@suse.de>
To: Patrik Jonsson <patrik@ucolick.org>
Cc: emacs-devel@gnu.org, Jason Rumney <jasonr@gnu.org>
Subject: Re: Extra character 194 appearing in network stream
Date: Sat, 17 Feb 2007 11:03:24 +0100 [thread overview]
Message-ID: <jer6spksnn.fsf@sykes.suse.de> (raw)
In-Reply-To: <45D6D082.1010502@ucolick.org> (Patrik Jonsson's message of "Sat, 17 Feb 2007 01:53:06 -0800")
Patrik Jonsson <patrik@ucolick.org> writes:
> (string-bytes (let ((i 200))
string-bytes does _not_ give the number of characters in a string. Since
you have a multibyte string, it may contain more bytes than characters.
You need to apply the appropriate encoding before sending it to the
network stream.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2007-02-17 10:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-17 0:53 Extra character 194 appearing in network stream Patrik Jonsson
2007-02-17 3:48 ` Jason Rumney
2007-02-17 9:31 ` Patrik Jonsson
2007-02-17 9:47 ` Andreas Schwab
2007-02-17 9:53 ` Patrik Jonsson
2007-02-17 10:03 ` Andreas Schwab [this message]
2007-02-17 18:53 ` Patrik Jonsson
2007-02-18 18:47 ` Stefan Monnier
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=jer6spksnn.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=emacs-devel@gnu.org \
--cc=jasonr@gnu.org \
--cc=patrik@ucolick.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.