SQLite 导入带有日语文本的 CSV

发布于 2024-10-01 10:18:20 字数 266 浏览 2 评论 0原文

我在 OpenOffice 电子表格中创建了一个表格,并将其保存为 CSV 文件。其中一栏是英文,其他栏目是日文。 我将它导入到 SQLite 中,但无论我如何对其进行编码(有很多选项),例如 UTF-8、日本语 Windows 等,当导入表时,日语列都是混合的符号和乱码。在疯狂的时候,我什至尝试了 ASCII 编码,但没有任何效果。

我可以手动输入字段,日语显示得很好。但如果我的 OPenOffice 和 SQLite 不能很好地发挥作用,我实际上需要手动执行一千次。

请帮忙。

I created a table in OpenOffice spreadsheet, saved it as a CSV file. It had one column in English and the others in Japanese.
I imported it into SQLite but no matter how I encode it (there are lots of options), for example UTF-8, 日本語 Windows, etc., when the table is imported the Japanese columns are all mixed up symbols and gibberish. At the point of madness I even went for ASCII encoding, but nothing worked.

I can manually input the fields and the Japanese shows up great. But I would literally need to do this a thousand times by hand if I OPenOffice and SQLite don't play nice.

Please help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

゛清羽墨安 2024-10-08 10:18:20

作为一种绝对可靠的方法,您可以使用 PHP 多字节函数将其转换为 HTML,并将其传输为 ASCII。

As a dead-sure way you can convert it to HTML with PHPs Multibyte functions and transfer it as ASCII.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文