The backend database is sql server 2000.

1) in web.config, set encoding to utf-8
2) in sql server, set field type to nchar, nvarchar or ntext
3) in the application data access layer, if using stored procedure, just set the input/output parameter to nchar, nvarchar or ntext; if using plain sql, use sth like "insert into employee_table(names, age) values(N'myname', 22)"

sql server will change uft-8 to ucs-2 and vise versa automatically.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2022-01-22
  • 2022-12-23
  • 2021-07-26
  • 2021-06-22
猜你喜欢
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案