如何在Sql Server中存储字体真棒 [英] How to Store the Font Awesome in Sql Server

查看:83
本文介绍了如何在Sql Server中存储字体真棒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何在sql server 2008中存储Font Awesome图标。

如何在Font Awesome中获取vales icon 。



Hi,

How to store the Font Awesome icon in sql server 2008.
How to get the vales in Font Awesome icon.

Quote:

fortawesome.github.io/Font-Awesome/icons

fortawesome.github.io/Font-Awesome/icons

推荐答案

我想在这里提到的第一件事我的朋友是,Font Awesome使用每个图标的内容代码。它没有关联的CSS或不是图像。这是一个简单的文本文件。

对于每个图标,您都可以获得内容代码。您可以保存内容代码,您可以从

FontAwesome cheatsheet 。

当您拥有可以访问图标的代码时,无需存储图标。

希望你能得到这个。

谢谢。

:)
The first thing I would like to mention here my friend is, Font Awesome uses the content code for every icon. It has no css associated or is not an image. It is simple a text file.
For every icon you get the content code. You can save the content code which you can get from the
FontAwesome cheatsheet.
There is no need to store the icon when you have the code through which you can access an icon.
Hope you get this.
Thanks.
:)


SQL Server不知道字体。它所知道的只是数据类型和文本的编码。



您可以做的是定义 NVARCHAR [ ^ ]类型。



含义是NVARCHAR可以存储 Unicode [ ^ ]数据。因此,如果您希望以印地语,英语甚至日语存储文本,则由您决定。
SQL Server has no knowledge about the fonts. What it knows is only the data type and the encoding of the text.

What you can do is define a columns of NVARCHAR [^]type.

What it means is that NVARCHAR can store Unicode [^]data. Thus, it's upto you if you want to store the text in Hindi, English or even Japanese.


您需要将列数据类型定义为Nvarchar,Nchar或Ntext,如Manas所示它可以读取Unicode值。



并且在插入数据时需要在前面加上N



例如插入表中选择N'भारत'
You need to define the column datatype as Nvarchar,Nchar or Ntext as indicated by Manas it can read Unicode values.

and while inserting the data you need to prefix it with N

e.g. insert into table select N'भारत'


这篇关于如何在Sql Server中存储字体真棒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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