看板 Programming 關於我們 聯絡資訊
目前在使用R語言連結MySQL 使用的是RMySQL的套件, 每次要叫出MySQL裡面的Table時候 如果table是中文,就會出現以下訊息 could not run statement: Invalid utf8 character string: '\xA4\xA4\xA4' (上面的table名稱為中文) 如果table名稱是英文,可以讀取到atribute的部分 但是如果atribute的名稱是中文,又會出現亂碼 如果atribute的值也是中文,最後結果都會出現亂碼 > dbGetQuery(con, "select * from ggg") id 銝餅\x96\x87 1 1 \xe6\x88\x91 (atribute是id ,主文 資料是 1 ,我 ) 請問要怎麼解決?????????? 還有可以在R裡面直接寫入atribute還有其值到資料庫裡面嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.162.172.222 ※ 文章網址: https://www.ptt.cc/bbs/Programming/M.1445524720.A.06F.html ※ 編輯: a3230127 (1.162.172.222), 10/22/2015 22:41:35
Wush978: https://goo.gl/9csBE4 114.45.200.223 10/24 15:28