Merhabalar,
Merhaba,
UTF-8 yapıdaki veritabanında yer alan bir tablodan COPY komutu ile bir CSV dosyası üretmek istediğim zaman Türkçe karakterlerin doğru çıkarılamadığını görüyorum.
B2C_DBase=# select version();
version
--------------------------------------------------------------------------------------------------------------
PostgreSQL 9.3.4 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4), 64-bit
(1 row)
B2C_DBase=# SHOW LC_CTYPE;
lc_ctype
-------------
en_US.UTF-8
(1 row)
B2C_DBase=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
------------+----------+----------+-------------+-------------+--------------------------------
……
B2C_DBase | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres +
| | | | | postgres=CTc/postgres +
| | | | | xxxxxxxxxx=c/postgres +
| | | | | xxxxxxxxxx=c/postgres
……….
(9 rows)
B2C_DBase=# SHOW client_encoding;
client_encoding
-----------------
UTF8
(1 row)
B2C_DBase=# COPY exportme to '/tmp/exportme.csv' delimiters',' CSV HEADER;
COPY 376883
B2C_DBase=#
Dosya çıktısından bir kısım;
81214 ,bakım%50,bakımyüzde50,bakımyüzde50,8martindirim,ciltbakım15,bakimyuzde50,bakimkampanyali15
Bu konuda nasıl bir yol izlenmesi gerektiğini paylaşabilir misiniz?
Teşekkürler,
Ahmet GÜNATA
This communication may contain information that is legally privileged, confidential or exempt from disclosure. If you are not the intended recipient, please note that any dissemination, distribution, or copying of this communication is strictly prohibited.
Anyone who receives this message in error should notify the sender immediately by telephone or by return communication and delete it from his or her computer.
Bu ileti hukuken korunmuş, gizli veya ifşa edilmemesi gereken bilgiler içerebilir. Şayet mesajın gönderildiği kişi değilseniz, bu iletiyi çoğaltmak ve dağıtmak yasaktır. Bu mesajı yanlışlıkla alan kişi, bu durumu derhal gönderene telefonla ya da e-posta ile
bildirmeli ve bilgisayarından silmelidir.