First, let's briefly talk about the history. The ASCII code was first developed by Americans. What is it? We know that the computer only knows 0 and 1. If we want the computer to recognize characters other than 01, for example, 'A', we must first
I. HTML page to UTF-8 encoding problem1. After head, add a line before title:The order must not be wrong, must be inThe caption displayed may be garbled!2.html file Encoding problem:Click on the Editor's menu: "File", "Save As", you can see the
The following is a detailed analysis of common functions in PHP. For more information, see array_change_key_case. the returned string key names are all lowercase or upper-case arrays.
Array_chunk-divide an array into multiple
Array_combine-creates
PHP and asp. netC # reversible encryption algorithms that can be shared. Because of work requirements, we need to generate encryption in php and then decrypt the password accepted in asp.net. below I find a PHP and asp. netC # A common reversible
PHP garbled problem, UTF-8 garbled problem is more common, through the following method basically can solve php garbled problem, indeed summed up good
I. HTML page to UTF-8 encoding problem1. add a line before the title after the head:
The order
In php, adding watermarks to Chinese characters requires some simple processing. one is to convert characters into gbk, and the other is to load Chinese fonts, with these two conditions, adding a Chinese watermark to the image is simple. Example 1
Workaround: Use JS to the URL of the Chinese character escape code.
When you click the link, the effect is:References: http://127.0.0.1/shop/product_list.php?p_sort=PHP%u5F00%u53D1%u8D44%u6E90%u7F51The result is that the UrlDecode () or
Below we together to see and an article about PHP BCD code compression-The decimal number compressed into hexadecimal data instances, I hope that the article to help you students oh.
Example, PHP BCD compression-Compress decimal numbers into
PHP achieves Unicode and Utf-8 mutual conversion
I. coding principles and implementation
Unicode encoding is the basis for UTF-8 and gb series encoding (gb2312, gbk, and gb18030) Conversion. although we can also directly create a UTF-8-to-these
Json cannot be parsed to ask everyone a question. a function is provided on the website to load third-party files and send text messages. The text message is sent successfully, and array ('status' => 0, 'message' => 'sent successfully') is returned
Summary: Mcrypt 2.4.7 is a powerful cryptographic algorithm extension library that includes 22 algorithms, including the following algorithms:???? Blowfish RC2 safer-sk64 Xtea???? Cast-256 RC4 safer-sk128???? DES Rc4-iv Serpent???? Enigma Rijndael-12
Abs: Get absolute value.
Acos: Gets the inverse cosine value.
Ada_afetch: Gets the returned column of the database.
Ada_autocommit: Switch automatic change function.
Ada_close: Close Adabas D link.
Ada_commit: Change Adabas D database.
Ada_connect:
This article to introduce the PHP anti-Chinese character to Unicode encoding implementation program method, there is a need to understand the friend can enter the reference.
Program
The code is as follows
Copy Code
/***
Several common methods of PHP tutorial string encoding Conversion
Mb_convert_encoding ()PHP's internal code conversion functionVersion (PHP 4 >= 4.0.6, PHP 5)This function can convert various encodings to each other
Make a GBK to UTF-8Header
PHP improved calculation of string similarity function Similar_text (), Levenshtein (), Levenshtein
Similar_text () Chinese character edition
Copy the Code code as follows:Splitting a stringfunction Split_str ($STR) {Preg_match_all ("/./u", $str,
PHP after a long period of development, many users are very familiar with PHP, here I published a personal understanding of the PHP string processing function, I hope to help everyone, PHP itself is a simple and powerful language.
The
What does the x7f-xff in this regular expression mean to see a regular expression written in the source code?
/\ /I
What does \ x7f-xff mean in
Reply to discussion (solution)
\ X7f-\ xff indicates that the ASCII character ranges from 127 to 255,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.