473,385 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Client Encoding in postgresql

hello all...

I am using postgres as my backend server and i need to insert some characters into tables... the server side encoding is UTF-8 and i am using the psqlODbc to connec to the database..
now for example if i try to insert some russian characters it inserts some '???????'
if i use the command set client encoding to UTF8, this sets the encoding to UTF-8 only for a particular session.

how do i make my application insert those russian values into my table..

Please help..

Thanks in advance for any help
Dec 4 '08 #1
3 15869
r035198x
13,262 8TB
1.)Make sure that your database encoding is set set UTF-8 (You can check that in pg_database).
2.) Make sure your client encoding is not set to SQL_ASCII.(That will disable all automatic conversion)
3.)Enable automatic client encoding using a persistent method. Section 21.2.3 of this page explains the different ways of doing it. The last ones are the more persistent.
Jan 7 '09 #2
thanks for your reply.. i ll do what ever you've suggested
Jan 28 '09 #3
Thank you !

It works fine

Vikki A
Jan 4 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Rene Pijlman | last post by:
I can't seem to find any way to specify the character encoding with the DB API implementation of PyPgSQL. There is no mention of encoding and Unicode in the DB API v2.0 spec and the PyPgSQL README....
2
by: Kathy Zhu | last post by:
Hi, sorry that this email is a little bit long, but it is actully not :-)) **** I have a database 'unidb' created with -E UNICODE. $ psql -l List of databases Name | Owner | Encoding...
1
by: Pavel Stehule | last post by:
Hello I have only one questions. I am testing PostgreSQL for windows. All look well, but I can't set database encoding win1250. Its can be problem, because win1250 is often used encoding on...
1
by: Carlos Correia | last post by:
Hi, Here is the output a psql session. Please notice that the identation inconsistences in the records containg non ASCII chars is as outputed by psql. The db was created with LANIN9 and the...
0
by: Simon Niederberger | last post by:
Hi all I'm having some trouble with UTF8 / ISO-8859-1 encoding using a Webservice based on PEAR::SOAP_Server. The client essentially sends an XML file as data (i.e. XML-data wrapped in SOAP-XML...
8
by: Erwin Moller | last post by:
Hi group, I could use a bit of guidance on the following matter. I am starting a new project now and must make some decisions regarding encoding. Environment: PHP4.3, Postgres7.4.3 I must...
0
by: chitranjan | last post by:
Hi all I am working on PostgreSQL-8.2.4 ,and OS of my system is fedora-6. There are other 3 systems ,having same OS(fedora-6) and we can connect them through ssh.Actually, i am new in...
1
by: chitranjan | last post by:
Is there separate packages for server and client in postgresql ? In MySQL , there are separate packages for client and server ..In PostgreSQL also there are two separate packages for client and...
2
by: wmstudio | last post by:
I have a PostgreSQL database encode in UTF-8. I try to do a mail merge from OOwriter. This seems to work except for non western characters. E.g. when I access the database from pgAdmin, a GUI client...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.