MySQL中的阿拉伯语脚本错误 [英] Error in Arabic script in MySQL
问题描述
我在 MySQL 数据库中插入了数据,其中包括阿拉伯文字。当输出显示阿拉伯语正确,MySQL中的数据看起来像垃圾。像这样:
'صَوم& ;#1615; ثَلاثَةِ أيّامٍ مِن كُلِّ شَهرٍ ـ أربَعاءُ بَينَ خَ
我应该担心这个吗?
这些都是HTML实体。
如果此文本
如果此文本
是你的数据库中应该包含的内容,一切都很可能:你的阿拉伯语输入在某个时候会被转换成这些实体。 / p>
要查看上述实际阿拉伯字符,请将其插入到文本文件中,将其命名为 something.htm
您还可以在UTF-8编码的mySQL表中将其转换为正确本机字符,但是要获取任何指针您必须告诉我们您正在使用哪些语言/平台。
I inserted data in a MySQL database which includes Arabic script. While the output displays Arabic correctly, the data in MySQL looks like garbage. Something like this:
'صَومُ ثَلاثَةِ أيّامٍ مِن كُلِّ شَهرٍ ـ أربَعاءُ بَينَ خَ
Should I be worried about this? If yes, how do I make it appear in proper Arabic script in MySQL?
Those are HTML entities.
If this text
صَومُ ثَلاثَةِ أيّامٍ مِن كُلِّ شَهرٍ ـ أربَعاءُ بَينَ خَ
is what is supposed to be in your database, everything's most likely fine: Your arabic input gets converted into those entities at some point along the way.
To view the actual arabic characters like above, insert them into a text file, name it something.htm
and open it in your browser.
You could also convert it into "proper" native characters in a UTF-8 encoded mySQL table, but for you to get any pointers how to do that you would have to tell us what languages/platforms you are working with.
这篇关于MySQL中的阿拉伯语脚本错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!