如何使Mysql数据库支持阿拉伯语? [英] How to make Mysql database to support Arabic Language?

查看:132
本文介绍了如何使Mysql数据库支持阿拉伯语?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将阿拉伯语言保存在mysql数据库中,但它没有以阿拉伯格式保存. 它显示问号而不是阿拉伯语.如何使其以阿拉伯语存储值.

I am trying to save Arabic language in mysql database but it doesnot save in Arabic format. It shows question marks instead of Arabic. How to make it store values in Arabic.

我尝试了许多从互联网上看到的查询,但是它没有改变.如何将其更改为阿拉伯语. "ar_SA:阿拉伯文-沙特阿拉伯" 请提出一种方法?

I tried many queries seeing from internet but it doesnot changes. How to change it for Arabic. "ar_SA: Arabic - Saudi Arabia" Please suggest a way?

推荐答案

只需在页面的编码,数据库连接以及数据库本身中使用UTF-8.

Just use UTF-8 in the page's encoding, in the database connection, and the database itself.

这篇关于如何使Mysql数据库支持阿拉伯语?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆