Garbled characters are displayed on the page and in the database. The second method is used to solve the problem.
Method 1:Add at the beginning of each pageOr
@ CodePageYou can use the @ codePage command to set the code page for the. asp file. The code page is a character set that includes numbers, punctuation marks, and other characters. Different Languages and scenariosUse different code pages. For example, the ANSI code page 1252 is used by American English and most European languages, while
HTML Special character encoding table
Special symbols
Named entities
Decimal code
Special symbols
Named entities
Decimal code
Special symbols
Named entities
Decimal code
Alpha
Alpha;
#913;
Beta
Beta;
#914;
Gamma
Gamma;
#915;
汛
Delta;
#916;
Ε
Epsilon;
#917;
Ζ
Zeta;
#918;
Η
Eta;
#919;
Theta
Theta;
Use PHP to connect to the MSSQLServer database and check the database code select collationproperty ('Chinese _ PRC_Stroke_CI_AI_KS_WS ', 'codepage ')
The return value is 936, which is GBK encoding.
GBK, Simplified Chinese, 936
950 traditional Chinese BIG5
437 US/Canada English
932 Japanese
Korean 949
866 Russian
65001 unicode UFT-8
If the field contains Chinese characters and the PHP file is encoded as GBK2312, there is no problem in r
Session. Contents (1) = "A" 'can also be written as session. Contents ("A") = ""
Session. Contents (2) = 128 'can also be written as session. Contents ("B") = 128
Session. Contents (3) = false' can also be written as session. Contents ("C") = false
Attributes of the reset Session Object
CodePage: readable/writable. Integer. Defines the code page used to display page content in a browser. The code page is the numeric value of the character set. Different languages use different code pages. For e
U
Universal sortable, local time
2002-12-10 22: 13: 50z
U
Universal sortable, GMT
December 11,200 2 3:13:50 AM
Y
Year month pattern
December 2002
The 'U' specifier seems broken; that string certainly isn' t sortable.
Custom date formatting:
Specifier
Type
Example
Example Output
Dd
Day
{0: dd}
10
Ddd
Day name
{0: ddd}
Tue
Dddd
Full day name
{0: dddd}
Tuesday
F, ff
addition, there is lpsztext [0] = 0xb1 lpsztext [1] = 0xe0. on the Microsoft Windows codePage 936 page, it turns out to be "linear, it reinforces our belief that it is GBK.
The function used for conversion to Unicode is multibytetowidechar. The first parameter is the code page of multibyte. If it is determined to be GBK, 936 can be used. I think it should be related to the system (for example, it should be 932 on the Japanese system), so cp_acp is u
Klein. The second Malaysia Grand Prix of F1 will be held in March 19 a week later.
The following table lists the official matches of the F1 Bahrain site:
Ranking
Vehicle ID
Drivers
Nationality
Fleet
Score
Tires
Points on this site
1
1
Aronso
Spain
Renault
'46 "205
Michelin
10
2
5
Mai-Schumer
Germany
Java, you should enter. net
The result is
Over 707 RMB per year932 more than two years909 at least three yearsMore than 414 in five years
Because ,. net is a broad set of technologies: Asp. net, windowsfrom, C #, these three types of work are expressed by many companies, but they are always. net range (I input. net keyword, Ken can still omit the job of simply writing windowsfrom, C ).
In addition, WWF, WCF, WPF, and officesystem belong to the technical scope of C. So, I can't find anyone in th
Y
Year month pattern
December 2002
The 'U' specifier seems broken;
Specifier
Type
Example
Example output
Dd
Day
{0: dd}
10
Ddd
Day name
{0: DDD}
Tue
Dddd
Full day name
{0: dddd}
Tuesday
F, FF ,...
Second Fractions
{0: fff}
932
GG ,...
Era
{0: Gg}
A.D.
HH
2 digit hour
{0: hh}
10
HH
2 digit hour
-Spanish (DOS)869 modern Greek874 Thai (Windows)932 Japanese (Shift-JIS)936 Simplified Chinese (GB2312)Korean 949950 traditional Chinese (Big5)1200 Unicode1201 Unicode (Big-Endian)1250 Central Europe (Windows)1251 Spanish (Windows)1252 Western Europe (Windows)1253 Greek (Windows)1254 Turkish (Windows)1255 Hebrew (Windows)1256 Arabic (Windows)1257 Baltic text (Windows)1258 Vietnamese (Windows)20866 silivin (KOI8-R)21866 silivin (KOI8-U)28592 Central Eu
character set. Different Languages and places may use different code pages. For example, ANSI code page 1252 is used in American English and most European languages. Code Page 932 for daily text LcidRead/write. Integer. Defines the page Region ID (lcid) sent to the browser ). Lcid is an abbreviation of an international standard that uniquely identifies a region. For example, 2057 defines the currency symbol of the current region as '£ '. Lcid can al
I had to work on the tool one afternoon. I don't know why. Install Google Toolbar
ProgramThe installation will not respond. I'm not convinced. I think gooogle's software should not be so bad. It should be due to a problem with my machine settings. I disable anti-virus software and the scttoy monitoring program. Restart the machine. Think about the other settings. The IE security level is low, and the other settings are my default settings. It is still not feasible. My XP system, remembered if i
-H host specifies the Host Name of the endpointOr IPAddress. IfNot specified.Ice. Default. hosT value.Are you sure you want to connect to the masterHost Name or IP addressAddress.Used to determine the Object AdapterListening for Connected NetworksInterface, and in the adaptationAgent createdHost published externallyName.-P PortPort of the specified endpoint.Are you sure you want to connectPort (required ).If this parameter is not specifiedOption, or portIsZero, port will be operatedSystem Select
. getresponsestream ();Byte [] READ = new byte [512];Int bytes = receivestream. Read (read, 0,512 );Txthtml. innerhtml = "";While (Bytes> 0){// Note:// The following assumes that the response uses the UTF-8 as the encoding method.// If the content is ANSI Code The following statement is used to send messages in the form of pages (for example, 932:// Encoding encode = system. Text. encoding. getencoding ("shift-JIS ");Encoding encode = system. Text. en
"* 54936 "gb18030"** Some platforms may not support specific code pages. For example, the Japanese shift-JIS code page (code page 932) may not be supported in Windows 98 in the US ). In this case, the getencoding method will trigger notsupportedexception when executing the following C # code:** Encoding ENC = encoding. getencoding ("shift-JIS ");***************************************** ********************** */ // Obtain the original character fr
Arabic characters (ASMO 708)720 DOS-720 Arabic characters (DOS)28596 iso-8859-6 Arabic character (ISO)1256 windows-1256 Arabic characters (Windows)1257 windows-1257 Baltic characters (Windows)852 ibm852 Central European character (DOS)28592 iso-8859-2 Central European characters (ISO)1250 windows-1250 Central European characters (Windows)936 gb2312 Simplified Chinese (gb2312)950 big5 traditional Chinese (big5)862 DOS-862 Hebrew characters (DOS)866 cp866 Spanish characters (DOS)874 windows-874 T
, using cp_acp asCodePageParameter and the mb_err_invalid_chars flag.
Any time a byte value that is not part of the legal mapping in the codePage is found, the API will fail with a getlasterror return value of error_no_unicode_translation.
It is important to note that this functionality is much more akin to that of the spellchecker in Microsoft Word than the thesaurus, in that it has no chance of detecting byte values that are valid for the code page but that make no sense.
Therefore if one atte
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.