Re: Encoding sorunu

From: İbrahim Sarıçiçek <ibrahimsaricicek(at)gmail(dot)com>
To: Ahmet Gunata <Ahmet(dot)Gunata(at)bimsa(dot)com>
Cc: "pgsql-tr-genel(at)postgresql(dot)org" <pgsql-tr-genel(at)postgresql(dot)org>
Subject: Re: Encoding sorunu
Date: 2017-04-11 13:23:45
Message-ID: CA+_N7q+3H_MU19xpSGPX7mnDQpytfvusJ6RbAaXqttv7xv189w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-tr-genel

Merhaba,

Doküman da utf-8 olarak kaydedilmeli.
Windows'da notepad ya da notepad++ ile dokümanın encoding düzeltince bende
çalışıyor.

2017-04-11 16:17 GMT+03:00 Ahmet Gunata <Ahmet(dot)Gunata(at)bimsa(dot)com>:

> 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.
>

In response to

Responses

Browse pgsql-tr-genel by date

  From Date Subject
Next Message Samed YILDIRIM 2017-04-11 13:35:13 Re: Encoding sorunu
Previous Message Ahmet Gunata 2017-04-11 13:17:22 Encoding sorunu