If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > db_locale & client_locale

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-17-10, 06:45
rapitoz rapitoz is offline
Registered User
 
Join Date: Mar 2010
Posts: 2
db_locale & client_locale

Hello,

Can't anybody help to figure out what i'm doing wrong:

I have Informix SE database with DB_LOCALE = ru_ru.915

Connecting to it from windows using JDBC 3.50 JC5, connection code is:
Properties prop=new Properties();
prop.setProperty("DB_LOCALE","ru_ru.915");
prop.setProperty("CLIENT_LOCALE","ru_ru.57372");
prop.setProperty("user","user");
prop.setProperty("password","pass");
String url = "jdbc:informix-sqli://192.168.0.1:1526/mydb:informixserver=srv_remote";
conn = DriverManager.getConnection(url, prop);


Connection is ok, and i can select data. But all character data is in ISO-8859-5 (915) encoding(i'm converting it localy from ISO to UTF and see correct strings...). I tried to change DB_LOCALE & CLIENT_LOCALE to other locales - nothing happens...
Reply With Quote
  #2 (permalink)  
Old 03-17-10, 10:56
informixdev informixdev is offline
Registered User
 
Join Date: Oct 2009
Posts: 15
DB... environment variables

Did you properly set DBLOCALE, DBDATE, and other INFORMIX DB environment variables when starting up your engine on the server?
Reply With Quote
  #3 (permalink)  
Old 03-18-10, 07:53
rapitoz rapitoz is offline
Registered User
 
Join Date: Mar 2010
Posts: 2
About engines...on Informix SE i have nothing to start except sqlexecd for remote connection. I tried to start sqlexecd with various server LOCALE environment variables but without any changes to character set on remote side...
Reply With Quote
  #4 (permalink)  
Old 03-18-10, 19:52
informixdev informixdev is offline
Registered User
 
Join Date: Oct 2009
Posts: 15
GLS Language Support

ok, well this is going to sound awkward and antiquated, but this is what I do when I start my INFORMIX-SQL version 2.10 (SE-engine) on DOS.

set INFORMIXDIR=C:\informix
set DBLOCALE= ????
set DBDATE=MDY4-
set DBTEMP=C:\tmp
set DBPATH=C:\db
.
.
etc.

pstartsql .....
---

are you setting your environment variables before firing-up SE?
refer to the GL language support section of the INFORMIX reference manual,
it gives you detail instructions for setting up the locale.
It includes telling informix where to look for the message files, eyc.
good luck!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On