Skip to content

Missing UTF-8 Characters #8

@GoogleCodeExporter

Description

@GoogleCodeExporter
Using jSocket from the browser, I send "green\u0000yellow" and expect 
"green\u0000yellow", or "green\x00yellow" at the server.php, however, I receive 
"green\x0r\x0writ" (php); i.e. html entities: 
"green�r�writ" See: 
http://www.utf8-chartable.de/unicode-utf8-table.pl?number=1024&unicodeinhtml=dec
&htmlent=1

What steps will reproduce the problem?

1) Setup the jsocket sample (samples/client/example/example.html) and the 
http://code.google.com/p/jsocket/source/browse/trunk/jsocket/samples/server/php/
server.php

2) Replace mySocket.write("GET / HTTP/1.1\r\n\r\n"); with
mySocket.write("green\u0000yellow");

3) The server.php code should receive "green\x0yellow", however the data 
becomes (php) "green\x0r\x0writ"

What version of the product are you using? On what operating system?
Version: svn:r132

I have also tried the writeUTFBytes and writeUTF functions.


Original issue reported on code.google.com by [email protected] on 25 Jul 2010 at 3:59

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions