You are viewing a single comment's thread from:

RE: R Tutorial - New Way to Connect to SteemSQL via RStudio - R 教程之通过 RStudio 来快速连接SteemSQL

in #cn8 years ago

这个很有意思,那比如怎么查询一个人发的帖子全文呢?不知道数据库有没有这么强大

Sort:  

这个很简单:
select title,body from Comments where author='justyy'

大概解决了,但是中文都是???,怎么解决呢?

sql <- "select title from Comments where author='justyy'"
res <- dbSendQuery(con, sql)

fch.res <- dbFetch(res, n = 10)
print(fch.res)
title
1 ???/??????????
2 2017 ???(?)?(?)? - Happy Bonfire Night 2017!
3 ???????:???????(2) ?????????
4 2???? 77????? Number 77 Thai Kitchen
5 2017-08-26 ??cn?????????????+???7???????
6 2017-08-25 ??cn??? '????????'
7 2016 Bonfire Night ?????? (???)
8 ?????2016????(????)
9 ????????? - ??200STEEM?1?SP??!
10 ??????????2????

这个我不太记得了, 我只记得之前 @oflyhigh 哥有篇文章里就专门提到这个问题,要不你问问他吧。
好像和编码有关, utf-8 之类的。

我搜到他那篇文章了,不算是一回事。
总的还是有点不爽,中文的查询。

Coin Marketplace

STEEM 0.10
TRX 0.32
JST 0.032
BTC 115587.97
ETH 4273.07
USDT 1.00
SBD 0.66