Overview: I am trying to create an Informix
instance with a character set of UTF8
.
Details: I understand that the default character set in informix when creating an instance is ISO Latin 1 (819)
. However, I am trying to convert my informix instances over to a UTF8
character set. I have created the correct Onconfig and paths. I cannot seem to set CLIENT_LOCALE
, DB_LOCALE
, SERVER_LOCALE
, and DBLANG
correctly.
> set DB_LOCALE=en_us.utf8
> set CLIENT_LOCALE=en_us.utf8
> set DBLANG=en_us.utf8 (I do not know if this is the correct value)
> set SERVER_LOCALE=en_us.utf8
> set GL_USEGLU=1
This works when I echo all five values they are set. However, when I try to create the instance after by:
> oninit -iy
I use dbaccess
to look at sysmaster::sysdbslocale
all the sys databases values are set to 819 which stands for the character set ISO Latin 1
not UTF8
.
(I have also tried setting them with export and repeating all other steps the same way.) One thing to note is that I am setting these values on a telnet connection to the server through putty
. The servers I am using are HP-UX
.
Questions:
- Does anyone know what I am doing wrong?
- Is
DBLANG
set to the correct value? - How do I set these values so that the instance is created using the utf8 character set?
- And finally how do I get these values to be set so that I do not have to set them every time I connect to the server using
putty
.