Subject | Re: [Firebird-Java] Encoding JayBird on Linux |
---|---|
Author | Roman Rokytskyy |
Post date | 2009-01-03T22:58:30Z |
Hi,
Windows box. This is controlled by the $LANG and/or $LC_CTYPE
environment variables and very often *nixes have it set to ANSI_C...
If you can't tune those environment variables, set the following
connection properties:
encoding=NONE
charSet=WIN1254
You can do this also in JDBC URL:
jdbc:firebirdsql:localhost/3050:/path/to/db.fdb?encoding=NONE&charSet=WIN1254
But the best way is to go away from NONE.
Roman
> I have an application which I initially developed on Windows withAlmost certainly your Linux has different code page compared to the
> Firebird 1.5.3 enconding NONE, JayBird 2.1
> Now I have poeted it to Linux (Ubuntu) and all is fine except problem
> with the Swedish letters ÅÄÖ. The letters display correctly in Windows
> environment bot NOT in Linux.
>
> Any ideas?
Windows box. This is controlled by the $LANG and/or $LC_CTYPE
environment variables and very often *nixes have it set to ANSI_C...
If you can't tune those environment variables, set the following
connection properties:
encoding=NONE
charSet=WIN1254
You can do this also in JDBC URL:
jdbc:firebirdsql:localhost/3050:/path/to/db.fdb?encoding=NONE&charSet=WIN1254
But the best way is to go away from NONE.
Roman