PHP使用Json中文Unicode亂碼解决方法
$string = '你好嗎';
echo json_encode($string); //Output "u4f60u597du55ce"
echo preg_replace("#u([0-9a-f]+)#ie", "iconv(‘UCS-2’, ‘UTF-8’, pack(‘H4’, ‘1’))", json_encode($string)); // Output "你好嗎"
$string = '你好嗎';
echo json_encode($string); //Output "u4f60u597du55ce"
echo preg_replace("#u([0-9a-f]+)#ie", "iconv(‘UCS-2’, ‘UTF-8’, pack(‘H4’, ‘1’))", json_encode($string)); // Output "你好嗎"
This is Nicholas Workshop, a brand new site by Nicholas Wong that's just getting started. Things will be up and running here shortly, but you can subscribe in the meantime if you'd like to stay up to date and receive emails when new content is published!
1. Update etc config /etc/default/plexmediaserver # default script for Plex Media Server # the number of plugins that can run at the same time export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 # ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000 # where the
This web site has been down for more than a year and I have not been putting any time to maintain it and put it back online. These days I finally spent some time to make it happen. There is a new theme, new backbone using Ghost and I am
1. Generate a set of SSH key pair in your server You would need a public and private of SSH key, theoretically it can be generated in any computer as you like. The following is a sample to generate the key. ssh-keygen -t rsa -b 4096 -C "nicholas@example.