For different database versions of session_cached_cursors

Source: Internet
Author: User

For different database versions of session_cached_cursors
For the session_cached_cursors value, different db versions have different default values:
9i is 010.1 010.2 is 2011.1 is 5011.2 is 5012.1 is 50
It is worth noting that this parameter is a static parameter and takes effect only after the db instance is restarted.
Weak: What is the difference between db (A) and db in the acoustic environment?

The sound level (soundlevel) is also called the permission level. The reading in decibels indicates the sound level at a certain point in the sound field. The sound level meter reading is the sound pressure level measured according to the defined frequency and time permission in accordance with the total audible frequency range. Frequency weight, time weight, and benchmark sound pressure must be specified. The commonly used frequency measure has four types of power: A, B, C, and D. The time options include fast block, slow block, and pulse block. The average AC time network time constant of the valid value reading in the header is 125 ms, ms, and 35 ms respectively. The baseline sound pressure is generally 2 MPa. The Unit is dB, and the value varies according to the Count network used. Generally, weighted measurement A is commonly used, which is expressed as A in the measurement conditions. The A level is already the main indicator used by the International Standardization Organization and most countries for subjective evaluation of noise. Asoundlevel refers to the sound level measured by the Weight Network of the sound level meter, measured in decibels, recorded as dB (). A sound level is used to simulate the frequency characteristics of human ears for low-intensity noise below 55 dB. It can better reflect the subjective evaluation of human noise. A sound level is widely used in noise measurement and has become the main source of noise Evaluation Indicators of the International Standardization Organization and the vast majority of countries: China Environmental News
 
When PHP reads txt files of two different users, it will output two different encodings. How can we unify their character encoding and access the database with garbled characters?

Function gb2utf8 ($ gbstr ){
If (function_exists ('iconv '))
{
Return iconv ('gbk', 'utf-8 // ignore ', $ gbstr );
}
Global $ CODETABLE;
If (trim ($ gbstr) = "")
{
Return $ gbstr;
}
If (empty ($ CODETABLE ))
{
$ Filename = "data/gb2312-utf8.dat ";
$ Fp = fopen ($ filename, "r ");
While ($ l = fgets ($ fp, 15 ))
{
$ CODETABLE [hexdec (substr ($ l, 0, 6)] = substr ($ l, 7, 6 );
}
Fclose ($ fp );
}
$ Ret = "";
$ Utf8 = "";
While ($ gbstr! = '')
{
If (ord (substr ($ gbstr, 0, 1)> 0x80)
{
$ ThisW = substr ($ gbstr, 0, 2 );
$ Gbstr = substr ($ gbstr, 2, strlen ($ gbstr ));
$ Utf8 = "";
@ $ Utf8 = u2utf8 (hexdec ($ CODETABLE [hexdec (bin2hex ($ thisW)-0x8080]);
If ($ utf8! = "")
{
For ($ I = 0; $ I <strlen ($ utf8); $ I + = 3)
$ Ret. = chr (substr ($ utf8, $ I, 3 ));
}
}
Else
{
$ Ret. = substr ($ gbstr, 0, 1 );
$ Gbstr = substr ($ gbstr, 1, strlen ($ gbstr ));
}
}
Return $ ret;
}
This is a function for converting gbk to utf8.
Currently, utf8 encoding is popular.
After you read it from the txt file, pass the obtained content to the function.
This function converts the encoding to utf8 and returns

This is what I used when I used the collection program ~ Because some websites use gbk Encoding
However, when the data table is put into the database by utf8, garbled characters are generated. You can use this function to solve this problem !... Remaining full text>

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.