Skip to content

Missing UTF-8 Characters #8

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 erik.hal...@gmail.com on 25 Jul 2010 at 3:59

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions