project and you will see the standard WCF information page
Note that the WSDL file's address is not correct and our service should be running on port 81, but the page does report that the WSDL file is on port 5100. If you click on the link above, you will get a bad request error. Even if you force the input of http://127.0.0.1:81/Service1.svc?wsdl in the browser, you will find that although you do see the WSDL file, the generated WSDL file is incorr
Unicode in JavaScriptby Jinya"Reprint please indicate the source, Http://blog.csdn.net/EI__Nino"Noun Explanation:BMP: (basicmultilingual Plane) It is also referred to as "0th plane", Plane 0UCS: Universal Character Set (Universal Character set, UCS)ISO: International Organization for Standardization (ISO)Utf:ucs Transformation Format,Bom:byte Order Mark byte orderCJK: Unified Ideographic Symbol (CJK Unified ideographs)Be:big Endian Big-endianLe:little
', js_unescape ($ _ REQUEST ['p _ sort ']);
At this point, we have successfully reversed the js escape code.
As follows:
In addition, I found a function that uses PHP to implement js escape encoding:
The code is as follows:
Function phpescape ($ str)
{
$ Sublen = strlen ($ str );
$ RetrunString = "";
For ($ I = 0; $ I {
If (ord ($ str [$ I]) >= 127)
{
$ TmpString = bin2hex (iconv ("gb2312", "UCS-2", substr ($ str, $ I, 2 )));
// $ TmpString = substr
FE.Unicode character SetFunction: Unified coding for 650 languages of the world, compatible with iso-8859-1.Number of digits: The Unicode character set is encoded in multiple ways, utf-8,utf-16 and UTF-32, respectively.BIG5 Character SetFunction: Unify traditional Chinese characters encoding.Number of digits: represented by 2 bytes, representing 13,053 kanji.Range: High byte from A1 to F9, low byte from 40 to 7E,A1 to FE.GB18030 Character SetFunction: It solves the encoding of Chinese, Japanese
UTF Encoding the UTF-8 is 8-bit to encode the UCS. The encoding method from UCS-2 to UTF-8 is as follows:
UCS-2 coding (hexadecimal)
the UTF-8 byte stream (Binary)
0000-007f
0 xxxxxxx
0080-07ff
110 XXXXX 10 xxxxxx
0800-FFF
UCS-2 uses two bytes to represent one character, so you can often hear the assertion that Unicode uses two bytes to represent a character. But soon some people think 256*256 too little, or not enough, so there is a UCS-4 standard, it uses 4 bytes to represent a character, but we use the most is still UCS-2. The UCS (U
MBCS. Also, in the default locale of the simplified Chinese windows, refer to GBK. 1.3. UnicodeLater, someone began to think that too much coding caused the world to become too complex, so that the brain hurts, so we sit together and shoot the head to come up with a method: All language characters are expressed in the same character set, which is Unicode.The original Unicode standard UCS-2 uses two bytes to represent one character, so you can often h
standard UCS-2 uses two bytes to represent one character, so you can often hear the assertion that Unicode uses two bytes to represent a character. But soon some people think 256*256 too little, or not enough, so there is a UCS-4 standard, it uses 4 bytes to represent a character, but we use the most is still UCS-2. The UCS
assign page numbers, GBK is the No. 936 page, that is, CP936. Therefore, you can also use CP936 to represent GBK.
MBCS (Multi-Byte Character Set) is a generic term for these encodings. So far everyone has used double-byte, so it is sometimes called DBCS (Double-byte Character Set). It's important to be clear that MBCS is not a particular encoding, and in Windows, depending on the area you set up, MBCS refers to different encodings, and Linux cannot use MBCS as the encoding. You can't see MBCS
-8 encoding is used.
The code is as follows: print iconv ('utf-8', 'gb2312', js_unescape ($ _ REQUEST ['p _ sort ']);
At this point, we have successfully reversed the js escape code.
As follows:
In addition, I found a function that uses PHP to implement js escape encoding:
The code is as follows:
Function phpescape ($ str){$ Sublen = strlen ($ str );$ RetrunString = "";For ($ I = 0; $ I {If (ord ($ str [$ I]) >= 127){$ TmpString = bin2hex (iconv ("gb2312", "
is MBCS. Also, in the default locale of the simplified Chinese windows, refer to GBK.
1.3. Unicode
Later, someone began to think that too much coding caused the world to become too complex, so that the brain hurts, so we sit together and shoot the head to come up with a method: All language characters are expressed in the same character set, which is Unicode.
The original Unicode standard UCS-2 uses two bytes to represent one character, so you can of
, we need to transcode it.
#### Transcoded TestUse the iconv tool that comes with Linux for transcoding. This tool is very powerful and supports multiple encodings, as shown below:
[ora10g@killdb dul]$ iconv -l|grep GBCN-GB//CSGB2312//CSISO58GB1988//EBCDIC-CP-GB//GB//GB2312//GB13000//GB18030//GBK//GB_1988-80//GB_198880//ISO646-GB//[ora10g@killdb dul]$ iconv -l|grep UCS10646-1:1993/UCS4/CSUCS4//ISO-10646/UCS2/ISO-10646/UCS4/UCS-2//
as follows: print iconv ('utf-8', 'gb2312', js_unescape ($ _ REQUEST ['P _ sort ']);
At this point, we have successfully reversed the js escape code.
As follows:
In addition, I found a function that uses PHP to implement js escape encoding:
The Code is as follows:
Function phpescape ($ str){$ Sublen = strlen ($ str );$ RetrunString = "";For ($ I = 0; $ I {If (ord ($ str [$ I]) >= 127){$ TmpString = bin2hex (iconv ("gb2312", "ucs-2", substr ($ str, $
($ _ REQUEST ['p _ sort ']);
At this point, we have successfully reversed the js escape code.
As follows:
In addition, I found a function that uses PHP to implement js escape encoding:
The code is as follows:
Function phpescape ($ str){$ Sublen = strlen ($ str );$ RetrunString = "";For ($ I = 0; $ I {If (ord ($ str [$ I]) >= 127){$ TmpString = bin2hex (iconv ("gb2312", "UCS-2", substr ($ str, $ I, 2 )));// $ TmpString = substr ($ tmpString,). subst
languages (such as Chinese and Japanese), nor scientific symbols, nor ancient texts (mysterious symbols and hieroglyphics) and music symbols. Changing the length of a byte can enable the encoding of a larger character set, which seems effective but completely impractical. All computers are based on eight bytes. The solution is a character encoding scheme (character encoding scheme, ces), which can represent a number larger than 256 with a fixed length or extended multi-byte sequence. these valu
encoding method that is strictly required and is more prone to decoding failures when the file is not encoded, put the loose encoding method at the end. For example, latin1 is a very loose encoding method. The text obtained by any encoding method is decoded using latin1 and will not fail to be decoded.-Of course, the decoded results are naturally "garbled ". Therefore, if you put latin1 at the top of fileencodings, opening any Chinese file is garbled.
The following is a fileencodings setting
more and more new systems are supporting and using Unicode. How to exchange data between these new systems and old systems is actually the first challenge. So a new term is born again, that is, UTF, Unicode translation format, that is, converting Unicode to a certain format. Why convert to a certain format? The conversion is for transmission and exchange. A good UTF-x solution should facilitate the transmission of texts of different languages and codes between different computers over the netwo
language characters are expressed in the same character set, which is Unicode.The original Unicode standard UCS-2 uses two bytes to represent one character, so you can often hear the assertion that Unicode uses two bytes to represent a character. But soon some people think 256*256 too little, or not enough, so there is a UCS-4 standard, it uses 4 bytes to represent a character, but we use the most is still
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.