November 2018

By default, Visual Studio Code The display language of the operating system will be picked up. If it is an unsupported locale, English (US) will be used.

1. Install the Chinese (Simplified) language pack

Link: https://marketplace.visualstudio.com/items?itemName=MS -CEINTL.vscode-language-pack-zh-hans

1-1. After entering this page, click the "Install" button, and a dialog box will pop up as shown below

 QQ screenshot 20181117083725.png

1-2. As shown in the figure above, open Visual Studio Code After that, you will jump to this page, and then click Install Install

 QQ screenshot 20181117083848.png

2. Settings

2-1. When the language pack installation is complete, press Ctrl + Shift + P , Enter Configure Display Language , and then press Enter

 [W_[2Z{6[F~NKS2GDVT0M$V.png

-Read the rest-

Due to the needs of the project, the Chinese domain name needs to be transcoded (convert the Unicode domain name to IDNA ASCII compatible format). Google found that idn_to_ascii Function can convert Chinese domain name (Unicode domain name) to IDNA ASCII compatible format

I am here PHP 7.2.1 Run under Echo idn_to_ascii ('people.com.cn. China '); There was an error

 [ root@izwz9a76txemslg5q0e3zaz  ~]# php -v PHP 7.2.11 (cli) (built: Nov  2 2018 09:15:43) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologie [ root@izwz9a76txemslg5q0e3zaz ~]#Php - r "echo idn_to_ascii ('people.com.cn. China ');" PHP Deprecated:  idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in Command line code on line 1 Deprecated: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in Command line code on line 1

-Read the rest-