开发者

Chinese text not working in terminal

开发者 https://www.devze.com 2022-12-27 19:37 出处:网络
I\'m trying to paste chinese text into terminal but I just get lots of numbers instead. if I quickly paste as soon as terminal loads the paste will work that once but not again? Its utf-8 unicode i\'m

I'm trying to paste chinese text into terminal but I just get lots of numbers instead. if I quickly paste as soon as terminal loads the paste will work that once but not again? Its utf-8 unicode i'm using.

I dont think its the font as it works in textedit th开发者_Go百科e only place I get the problem is in terminal but I need to use it to make my sqlite database.

What would be the best thing to do?

Thanks


Load Terminal Inspector, and make sure the Character Set Encoding has to be set to Unicode (UTF-8) and check the Wide glyphs for Japanese/Chinese/etc setting.


The best thing to do would probably be to write the data into an SQL file and perform that with sqlite3 mydatabase.db < mychinesetextfile.sql.

It's not pretty, on the whole; but it'll work.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号