[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extra character 194 appearing in network stream
From: |
Andreas Schwab |
Subject: |
Re: Extra character 194 appearing in network stream |
Date: |
Sat, 17 Feb 2007 11:03:24 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) |
Patrik Jonsson <address@hidden> 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, address@hidden
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."