Re: UTF-8 issue

Frediano Ziglio <[email protected]> Fri, 4 Jan 2019 09:16:01 +0000
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CAHt6W4eenkvZhuxHbb=z0nF8u507ZLa+Jz8_ODPQwhn1jtgT3g@mail.gmail.com>
Il giorno mer 2 gen 2019 alle ore 06:14 Deepa Umesh
<[email protected]> ha scritto:
>
> Hi Guys,
>
> While using FreeTDS I found there is an inconsistency in UTF-8 issue.
>
> Request anyone in the mailchain to provide information on how UTF-8 encoding is supported.
>
> The following is the configuration we made in odbc.ini
>
> [sqlprog1]
> Driver=/usr/local/freetds-1.00.97/lib/libtdsodbc.so
> Server=172.16.127.134
> Database=sqlprog1_catdev19
> Port=1433
> TDS_Version=7.3
> Client Charset = UTF-8.
>
> My question is can we set Client Charset = UCS-2 ?

No, that encoding is for multibyte, to use wide character use wide
version of the functions.

Frediano