Page 1 of 1

binary conversion problem[Solved]

Posted: Mon Dec 03, 2007 5:44 am
by devendra-m
pack("C*",0xd0,0xcf,0x11,0xe0,0xa1,0xb1,0x1a,0xe1) should output поЮ║╠А , but it is giving unexpected output.

Posted: Mon Dec 03, 2007 9:41 am
by feyd
You're giving it integers.

Posted: Mon Dec 03, 2007 10:23 pm
by devendra-m
I am trying to read xls file. I found error in binary conversion.

Posted: Mon Dec 03, 2007 10:57 pm
by devendra-m
I got the main problem.

The problem is function @file_get_contents($filename) is giving wrong value.

Posted: Tue Dec 04, 2007 6:25 pm
by feyd
I don't see how file_get_contents() is the culprit, it reads and returns raw data, without any filtration or interpretation.

Posted: Wed Dec 05, 2007 12:31 am
by devendra-m
Problem has been solved