Re: russian codepage in 4js

Rene Schacht <[email protected]> Thu, 19 Apr 2007 10:22:30 +0200
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <20070419082230.GC22979@rene>
Hello,
the answer depends on your installation.

If the database server and fgl are installed on a Linux box:
On debian I can choose those locales when using russian:
 ru_RU.ISO-8859-5
 ru_RU.CP1251 CP1251
 ru_RU.KOI8-R
 ru_RU.UTF-8
By sure to set the CLIENT_LOCALE to a value fitting to LANG

On Mon, Apr 16, 2007 at 09:54:29AM +0200, Stefan Serwe wrote:
> Hello List,
> I want to create a database (informix) with the russian code-Page
> 
> I set the DB_LOCALE and CLIENT_LOCALE to ru_ru_1251cp and change my local country-settings on the windows-client to russian. With these seetings I can use the russian code-page in 4Js (3.54). I type something and insert it in a table.
> 
> But how can I print that with a report ?? The codepage cyrillic is 8895-5 but The result from the output is not so good ;-).

This is perhaps an indicator for your problem: you're using ISO-8859-5.
See 
http://en.wikipedia.org/wiki/ISO_8859-5
http://en.wikipedia.org/wiki/Windows-1251

For sure, the report must be corrupt: you told the database you're using
CP1251, but you're using ISO-8859-5 at client site.

It LANG is set to ru_RO.8859-5, set CLIENT_LOCALE to ru_RU.8859-5.

fglrun will send all date encoded in ISO-8859-5 to the GDC. GDC will
convert to the windows code page CP1251 on the fly.

Don't be confused by the word "CLIENT_LOCALE". This is the locale of the
machine executing fglrun. This is __not__ the locale of machine executing
GDC.

Rene
> 
> How can I use the 1251-codepage for Printing with PCL ??
> 
> Any ideas for me ....
> 
> thanks in advance
> 
> kind regards
> 
> Stefan Serwe
> 
> 

-- 
Rene