title: PHP socket send message in Korean or Asian Language
body: <p>I want know how can we send a message in Asian language, such as Korean using php socket. I am already sending and receiving English characters. I look at the in wire Shark to see what I am sending, to see if i am sending correctly. 
  Note: (I do not speak any Korean this is just a test)
  Already tried to change data to binary:  <code>hex2bin(sprintf("%%c", ("ㅁ")));</code></p>
  
  <pre><code>        // $data= "This is test"; 
          $data= "ㅁ"; 
           if (!($sock = socket_create(AF_INET, SOCK_STREAM, 0))) {
              $errorcode = socket_last_error();
              $errormsg = socket_strerror($errorcode);
  
              return("Couldn't create socket: [$errorcode] $errormsg ");
          }
  
          //Connect socket to remote server
          if (!socket_connect($sock, $address, $port)) {
              $errorcode = socket_last_error();
              $errormsg = socket_strerror($errorcode);
  
              return("Could not connect: [$errorcode] $errormsg ");
          }
       if (!socket_send($sock, $data, strlen($data), 0)) {
              $errorcode = socket_last_error();
              $errormsg = socket_strerror($errorcode);
  
              return("Could not send data: [$errorcode] $errormsg \n");
          }
          //Now receive reply from server
          if (($byte = socket_recv($sock, $buf, 2045, 0)) === FALSE) {
              $errorcode = socket_last_error();
              $errormsg = socket_strerror($errorcode);
              return("Could not receive data: [$errorcode] $errormsg");
          }
  </code></pre>