Record all Service packs and patches applied to the SQL Server instance and the current collation:SELECT serverproperty (' ProductVersion ') as ProductVersion, serverproperty (' ProductLevel ') as ProductLevel, Serverproperty (' resourceversion ')
Problem: When using MySQL, using PHP to insert a database, query database information will be garbled to solve: Modify the MySQL configuration file, in its configuration file added code init_connect= ' SET collation_connection = utf8_ Unicode_ci '
Method 1: use the set syntax to specify the parameter. If "Global" is not added, the parameter is only valid for this session.
Set [Global] character_set_client = utf8;Set [Global] character_set_connection = utf8;Set [Global]
Tomcat sets URI default character set as UTF-8, uriutf-8
When a new Spring MVC project is configured, garbled characters are found in the Chinese parameters of the Get request:
View the encoding configuration in SpingMVC (in web. xml), as shown
Tomcat sets the URI default character set to UTF-8
When a new Spring MVC project is configured, garbled characters are found in the Chinese parameters of the Get request:
View the encoding configuration in SpingMVC (in web. xml), as shown below:
Pay attention to the default character encoding for the GD function imagettftext () in PHP. At this time, I was developing a small function, which is something similar to the personalized signature of the Forum. based on the member information, I
Reproduced for later study. Thank youSometimes Java code, import eclipse will appear garbled problem, by modifying the character set can be resolved.Look at the following picture demonstration process.posted in use tutorial | tags for eclipse,
modified via MySQL command line:Set Character_set_client=utf8;Set Character_set_connection=utf8;Set Character_set_database=utf8;Set Character_set_results=utf8;Set Character_set_server=utf8;Support for character sets is refined to four levels:Servers
Toolbar-"database-" Edit current DBMSThen, select: Mysql50::script\objects\table\optionsAdd at the end of the options:ENGINE =%s:list = BDB | HEAP | ISAM | InnoDB | MERGE | Mrg_myisam | MYISAM, default = MYISAMDEFAULT CHARACTER SET =%s:list = UTF8 |
To view the Oracle database character set:Sql> Select Userenv (' language ') from dual;USERENV (' LANGUAGE ')--------------------------------------------------------------------------------American_america. we8mswin1252sql> shutdown immediate;sql>
Cd/var/lib/mysql/gamellVim db.optDefault-character-set=utf8Default-collation=utf8_general_ciWqService mysqld RestartOrService Mysqld ReloadDefault Character Set modification
Transfer from http://www.cnblogs.com/fygh/archive/2012/05/15/2501598.htmlDemandWhen you install the database, the character set is installed as "sql_latin1_general_cp1_ci_as" and you now need to change it to "chinese_prc_ci_as".Methodrebuild the
Toolbar-"database-" Edit current DBMSThen, select: Mysql50::script\objects\table\optionsAdd at the end of the options:ENGINE =%s:list = BDB | HEAP | ISAM | InnoDB | MERGE | Mrg_myisam | MYISAM, default = MYISAMDEFAULT CHARACTER SET =%s:list = UTF8 |
DemandWhen you install the database, the character set is installed as "sql_latin1_general_cp1_ci_as" and you now need to change it to "chinese_prc_ci_as".Methodrebuild the system database , and then restore the configuration information.
One, character set and validation rulesA character set is a set of conformance and encoding, a set of rules that are used to compare characters within a character set, that is, the collation of a character set. MySQL can use the pair of character
1 Character Set issuesProblem: Executing the./manage.py createdb command in Django appears:Django.db.utils.OperationalError: (1366, "Incorrect string value: ' \\xC4\\x9A\\xC2\\x81vi ... ' for column ' file ' at row 1" )To view the MySQL
A new spring MVC project was found with garbled Chinese parameters for get requests:
Looked at the configuration for encoding in SPINGMVC (in Web.xml), as follows
encodingFilter
Requirement
When installing the database, install the character setSQL _latin1_general_cp1_ci_as", Now you need to change it to"Chinese_prc_ci_as".
Method
Regenerate the system databaseAnd then restore the configuration information.
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.