English 中文(简体)
Unicode Spreadsheet to MySQL
原标题:Unicode Spreadsheet to MySQL

我正试图从Excel或开放办公室获得一份文件,其中含有UTF 16特性的内容,列入MySQL,但我找不到出口该文件的最佳途径,以便SQadmin阅读该文件。 我可以出口新办公室,作为“统一编码”格式,但最接近的办法是MySQL。 当我尝试这种形式时,它只是玩弄和思考。 UTF8并不支持我所需要的所有特性。

最佳回答

UTF8确实支持UTF16的所有特性,它只是说UTF16把一切都装成两条 by,而UTF8则最多只能用四条 by。

当时,MySQL确实支持UTF16,因为:endianness of the encoding isn t specified,因此纠正不能随时保证。 UTF16 是

<>SQLite>通过违约支持UTF16。

问题回答

Save as UTF-8. 如果你能够直接从你的办公室软件(oh!)中拯救UTF-8,那么就装入“灯塔”或同号,并作为UTF-8。

作为UTF,UTF-8和UTF-16能够代表所有统法协会的同样、完整的特性。 UTF-8是关于拆解的档案的明智编码;UTF-16LE(或“Unicode”作为“Windows”非常误导地描述)是真实的。 UTF-16可用于网上储存,但MySQL不使用。 • 与UTF-8一道进行MySQL储存。





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签