Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Wide character in syswrite" problem?

Status
Not open for further replies.

lichtjiang

Programmer
Feb 26, 2007
39
US
I got the error "Wide character in syswrite at ...". syswrite writes data to a socket, which set to binmode. So, what does this error mean since any data written is treated as binary? Thanks.
 
According to a quick Google search, this error seems to be showing up for a quite a diff PM's; which one are you having with?
 
I solved the problem:

the data gaven to syswrite is in fact extracted from a html as text. But I forgot to encode it such that they are valid us-ascii encoded. Now, there is no error anymore.

But question is why syswrite complains since it should treat data as binary???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top