把生成的文件放进SqlServer里面去运行结果出现中文乱码。
按照网上教的方法试了还不不行
该怎么办啊
按照网上教的方法试了还不不行
该怎么办啊
解决方案 »
- 类似宝宝树中日历的东西是怎么做的啊!!希望能给个类似实例源码!!!c#的
- gridview自动生成列,能否将列设为都是模板列
- 还是刚才那DropDownList选值问题..马上结
- 直接用文字链接怎么实现关闭页面
- FindControl用了,怎么却找不到控件呢,急!!
- xml用到的css代码只能写到外部文件吗?能不能像html一样,写在本页里。谢谢!
- -----.net中发送和接收邮件的问题-----
- 我将WEB站点的IP地址调为“全部未分配”(原来是局网内地址192.168.0.11)就可创建ASP.net 程序,如果是原来的就不行,为什么?(在线等
- WEB应用程序建立时的奇怪情况
- 各位大侠: 急!急!急!.net有无与 AttachURL 等效的方法!!!!!
- asp.net创建控件时出错
- 学习ASP.NET之前需要先学习C#吗?
ResponseEncoding="UTF-8"
而是在SqlServer里面执行 中文生成了@safename
中FortuneLibrary中对应CodeSmith模板中的代码参考www.cnblogs.com/mail-ricklee
{
return obj.Name;
// without an object instance, this is all useless
if (obj == null)
throw new ArgumentNullException("obj");
// get the name
if (obj is TableSchema)
return GetAliasName(((TableSchema)obj).Owner, obj.Name, null, nameType);
else if (obj is ViewSchema)
return GetAliasName(((ViewSchema)obj).Owner, obj.Name, null, nameType);
else if (obj is ColumnSchema && nameType != ReturnFields.CSType)
{
return GetAliasName(((ColumnSchema)obj).Table.Owner, ((ColumnSchema)obj).Table.Name, obj.Name, nameType);
}
else if (obj is ViewColumnSchema && nameType != ReturnFields.CSType)
return GetAliasName(((ViewColumnSchema)obj).View.Owner, ((ViewColumnSchema)obj).View.Name, obj.Name, nameType);
else if (obj is ColumnSchema && nameType == ReturnFields.CSType)
{
string aliasType = GetAliasName(((ColumnSchema)obj).Table.Owner, ((ColumnSchema)obj).Table.Name, obj.Name, nameType);
if (string.IsNullOrEmpty(aliasType))
return ((ColumnSchema)obj).DataType.ToString(); // SystemType or NativeType ?
else
return aliasType;
}
else if (obj is ViewColumnSchema && nameType == ReturnFields.CSType)
{
string aliasType = GetAliasName(((ViewColumnSchema)obj).View.Owner, ((ViewColumnSchema)obj).View.Name, obj.Name, nameType);
if (string.IsNullOrEmpty(aliasType))
return ((ViewColumnSchema)obj).DataType.ToString(); // SystemType or NativeType ?
else
return aliasType;
}
else
throw new ArgumentException("obj");
}在里面添加 return obj.Name; 这个 还是不行啊 急死了
SELECT
[鑿滃崟椤笽D],
[涓婄骇鑿滃崟椤笽D],
[鍚嶇О],
[鎻忚堪],
[URL],
[鎺掑簭],
[鍥炬爣URL]
FROM
[dbo].[鑿滃崟椤筣