--
[ Picked text/plain from multipart/alternative ]
I've found my problem: It seems I need to make the messages I send UTF-8
encoded where as I was just sending my messages before in plain ANSI. The
characters <128 must have been recognized as part of the UTF-8 encoding and
thus were incomplete since the following characters were normal characters;
so I presume the offending <128 characters were simply ignored.

On 6/3/06, John Sheu <[EMAIL PROTECTED]> wrote:
>
> > However, when I attempt to write out a message that contains characters
> that
> > are greater than 128 (unsigned) in byte size, they get stripped. I've
> also
> > tried replacing the WriteChar() in the WriteString() function with
> > WriteByte() but I still get the same result. Is there any way to write
> these
> > kind of characters into a bf_write? Or is this problem occurring
> somewhere
> > else downstream where these characters may be getting stripped?
>
> What's "stripped"?  Are they being clamped to 128?  Or is it possible
> that it's being wrapped around to -127?
>
> I've had issues before with bf_read/bf_write and casting signed/unsigned
> chars.  It usually comes down to making sure that you aren't making any
> unneccessary casts.
>
> -John Sheu
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to