Tag: UTF-8
-
Post Views: 31 After switching from Windows to Ubuntu, the prompt ‘Invalid characters detected’ pops up when opening the document I wrote before, and the content is displayed as garbled characters. Here is a record of the effective solution I personally tested, the whole process only needs the mouse to operate. 1. Problems In the Ubuntu 26.04 system, use the…
-
Post Views: 21 1. The result of preg_split after executing Chinese is garbled. as shown in Figure 1 2. Convert the string to UTF-8 before using preg_split(). u means Unicode (UTF-8) mode, avoiding Chinese character split errors. 3, the split is correct, no more errors.
-
Post Views: 28 1. In the local development environment, Laravel Sail has been deployed based on the deployment. Open URL:http://weibo.test/, the response 200. as shown in Figure 1 2. Register a Heroku account and use @163.com to find that it is not allowed, and finally use @gmail.com, the registration is successful. as shown in Figure 2 3. Click the link…
-
Post Views: 22 1. Error in Yii 2.0: Malformed UTF-8 Characters, Possibly Incorrectly Encoded. 2. Check the code below 3. Print out $E->GetMessage(), which contains garbled characters. as shown in Figure 1 4. Edit the code, MB_CONvert_encoding — Convert the encoding of characters. The response status code is: 500, and the response body is: “SQLState[HY000][2002]php_network_getaddresses: getaddrinfo failed: I don’t know…
-
Post Views: 15 1. Failed to download the Chinese name file from CentOS 6.5 on FlashFXP failed. The screenshot is as follows: 2. In the options of the site manager, set the character encoding to UTF-8 3. After reconnecting the FTP site, you can successfully download the Chinese name file
