久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

MySQL 警告:不正確的字符串值:'\x96

MySQL warning: Incorrect string value: #39;\x96(MySQL 警告:不正確的字符串值:\x96)
本文介紹了MySQL 警告:不正確的字符串值:'\x96的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我正在嘗試導入一個 CVS 文件,并在其中收到此警告:1366 不正確的字符串值:'\x96 PART ...' 列

I'm trying to import a CVS file where I get this warning: 1366 Incorrect string value: '\x96 PART...' for column

我在某處讀到這是關(guān)于 4 位 utf8 字符的.但是將表和列的排序規(guī)則更改為 utf8mb4 也不起作用.

I read somewhere that this is about the 4-bit utf8 characters. But changing the collation of the table and column into utf8mb4 didn't work either.

推薦答案

十六進制 96 大概是 en-dashlatin1 編碼> ().但是你已經(jīng)指定了 CSV 文件是 utf8 編碼的(或者 utf8mb4),這個字符是 utf8 無法理解的.

The hex 96 is presumably the latin1 encoding for an en-dash (). But you have specified that the CSV file is utf8-encoded (or utf8mb4), this character is incomprehensible to utf8.

計劃 A:更改文件.(這可能不切實際.)

Plan A: Change the file. (This is probably not practical.)

計劃 B:告訴 MySQL 該文件是 latin1(而不是 utf8).然后 MySQL 會將其正確轉(zhuǎn)換為 utf8 編碼 E28093.

Plan B: Tell MySQL that the file is latin1 (as opposed to utf8). Then MySQL will convert it correctly to the utf8-encoding E28093.

整理"與排序和比較有關(guān);字符集"與編碼"有關(guān).

"Collation" has to do with sorting and comparing; "Character set" has to do with 'encoding'.

將此添加到我假設(shè)您正在使用的 LOAD DATA 語句中:

Add this to the LOAD DATA statement that I assume you are using:

CHARACTER SET latin1

參考.

這篇關(guān)于MySQL 警告:不正確的字符串值:'\x96的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Typeorm Does not return all data(Typeorm 不返回所有數(shù)據(jù))
MySQL return extra records when using a long type number to filter varchar type(MySQL在使用長類型數(shù)字過濾varchar類型時返回額外記錄)
MySQL Error #1071 - Specified key was too long; max key length is 767 bytes(MySQL 錯誤 #1071 - 指定的鍵太長;最大密鑰長度為 767 字節(jié))
How to make SQLite SELECT query in C correctly?(如何在 C 中正確地進行 SQLite SELECT 查詢?)
MySQL command-line table column width with utf8(MySQL命令行表列寬與utf8)
Python unicode encoding issue(Python unicode 編碼問題)
主站蜘蛛池模板: 久草视频2| 中文字幕第7页 | 一区二区在线免费观看 | 97人人澡人人爽91综合色 | 国产精品视频网站 | 日韩免费高清视频 | 看黄在线| 国产欧美在线观看 | av在线播放网址 | 日韩在线不卡 | 365夜爽爽欧美性午夜免费视频 | www.操com| 另类视频在线 | 在线观看av不卡 | 一区二区国产精品 | 一a级片 | av色站 | 久热国产精品视频 | 国产在线精品一区二区 | 日本高清视频在线播放 | 日韩欧美国产电影 | 国产福利在线播放麻豆 | 午夜视频在线免费观看 | 久久在看 | 超碰激情| 婷婷丁香综合网 | 天天综合久久 | www久久久| 亚洲一区二区三区欧美 | 午夜久久久久 | 久久国产亚洲 | 日韩不卡三区 | 成人毛片在线视频 | 欧美成人自拍视频 | 免费观看av | 久草精品视频 | 三级黄色片在线观看 | 色婷婷一区 | 国产激情 | 成人欧美一区二区三区在线播放 | 久久毛片网站 |