Add example how to connect ipaddr:port and set charset

Add example how to connect ipaddr:port and set charset