FREETDS和UNIXODBC字符转换 [英] FREETDS and UNIXODBC character converting

查看:223
本文介绍了FREETDS和UNIXODBC字符转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ive修复了错误。其:

  [FreeTDS] [SQL Server]将字符转换为服务器的字符集时出错。当我使用土耳其语字符插入时,某些字符无法转换

我收到此错误。我的问题是如何禁用转换的东西?即时通讯通过freetds和unixodbc连接到sql服务器。



谢谢..

解决方案

您需要设置

 客户端字符集= UTF-8 


中,通过将Servername选项设置为freetds.com中的连接定义,从odbc.ini中读取它。参见此说明和我的博客文章


ive got an error to fix. its:

[FreeTDS][SQL Server]Error converting characters into server's character set. Some character(s) could not be converted

when i use turkish characters to insert i get this error. my question is how can i disable that converting thing? im connecting to sql server via freetds and unixodbc.

thanks..

解决方案

You need to set

client charset = UTF-8

in your freetds.conf file and read it from odbc.ini by setting the Servername option to the connection definition in freetds.com. See this explanation and my blog post.

这篇关于FREETDS和UNIXODBC字符转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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