Non ASCII char in PHP?
Posted
by domagoj412
on Stack Overflow
See other posts from Stack Overflow
or by domagoj412
Published on 2009-04-10T21:12:43Z
Indexed on
2010/03/20
19:21 UTC
Read the original article
Hit count: 421
Hello, I am trying to send something to serial port (r232) with PHP. I am using this class: http://www.phpclasses.org/browse/package/3679.html
The problem is that I am allowed to send only 1 byte. But if I send something like "1", I am actually sending 49 (ASCII for 1). Instead of send("1"), I tried with send(1) but it is no good, because this is integer which has 2 bytes. So is there a way to send a "real" char, not ASCII equivalent?
© Stack Overflow or respective owner