如何在 HTML textarea 中启用非英文字符的输入? [英] How to enable typing for non-english characters in a HTML textarea?

查看:26
本文介绍了如何在 HTML textarea 中启用非英文字符的输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上安装了阿拉伯语网络字体.但是当我在 Textarea 中输入任何内容时,我会看到英文字符.当我从另一个网站复制阿拉伯字符并粘贴到 textarea 时,它们看起来很完美.如何直接从键盘插入阿拉伯字符?

I have installed Arabic web fonts on my website. But when I type anything in a Textarea I see English characters. When I Copy Arabic characters from another website and paste into textarea, they appear perfectly. How can I insert arabic character directly from my keyboard?

谢谢,祖拜尔

推荐答案

您需要更改键盘语言.根据操作系统,您必须找到如何将键盘输入从标准美国设置为阿拉伯语.在 Windows 8 上,您转到控制面板 -> 更改输入法 -> 添加语言 在 Windows 7 和 Vista 上查看以下 如何更改键盘布局.我也假设你已经包括 在您的 HTML 文件中.

you need to change the Keyboard language. Depending on the operating system you must find how to set your keyboard input from standard US to Arabic. On Windows 8 you go to Control Panel -> Change input methods -> Add a language on Windows 7 and Vista check out the following How to change your keyboard layout. Also I am assuming you have included <meta charset="UTF-8"> in your HTML file.

这篇关于如何在 HTML textarea 中启用非英文字符的输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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