 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Boris Nienke Guest
|
Posted: Thu Sep 11, 2003 7:49 am Post subject: Codepage overview? |
|
|
Hello,
i need to use some different Codepages to display russian or czechian text.
But the problem is, that the database (Sybase Anywhere) needs to use the
same codepage to be able to store those special characters.
This is a problem because i need to install the right database for the
destination-language... but what, if the user likes to use two languages?
I've seen, that i can have german umlauts on a czechian Win2k. But i can't
have german umlauts on a russian Win2k.
So the question is:
- is there a single codepage which supports german umlauts, czechian
special characters and russian too? Or a least one codepage for
german/russian and one for german/czechian?
- is there a list (overview) available which explains (in detail?) which
characters are available on each codepage?
I think a big solution would be, to make everything with unicode - but i
think it's not possible to change a whole set of applications (10+
EXE-Files, 10+ OCX, DLLs, etc) to unicode (we're still on Delphi3 for the
main application and Delphi5/7 for new OCX/DLLs). (i mean, it not just the
visual controls which has to be changed - which is a big problem because
DevExpress doesn't support unicode and we are using their grid... but what
about internal functions that are working with String-Functions (pos, trim,
sort, etc.) and what about constants that are in the sourcecode - Delphi
itself doesn't support unicode)
And as far as i know it is not possible with the Sybase Anywhere Database
to work with unicode?
Boris
|
|
| Back to top |
|
 |
FL Guest
|
Posted: Thu Sep 11, 2003 1:01 pm Post subject: Re: Codepage overview? |
|
|
Boris Nienke wrote:
| Quote: | Hello,
i need to use some different Codepages to display russian or czechian text.
But the problem is, that the database (Sybase Anywhere) needs to use the
same codepage to be able to store those special characters.
This is a problem because i need to install the right database for the
destination-language... but what, if the user likes to use two languages?
I've seen, that i can have german umlauts on a czechian Win2k. But i can't
have german umlauts on a russian Win2k.
So the question is:
- is there a single codepage which supports german umlauts, czechian
special characters and russian too? Or a least one codepage for
german/russian and one for german/czechian?
|
Unicode is the only way to achieve three languages at the same time.
IIRC, Sybase Anywhere supports utf-8.
For codepage references, you may refer to this site:
http://www.microsoft.com/globaldev/reference/wincp.mspx
Francisco
|
|
| Back to top |
|
 |
Mike Lischke Guest
|
Posted: Thu Sep 11, 2003 6:22 pm Post subject: Re: Codepage overview? |
|
|
Hi Boris,
| Quote: | - is there a list (overview) available which explains (in detail?) which
characters are available on each codepage?
|
Sure, going via my Unicode site (www.delphi-unicode.net) you will get the link: Codepages & Co, http://czyborra.com/charsets/codepages.html.
| Quote: | And as far as i know it is not possible with the Sybase Anywhere Database
to work with unicode?
|
Like Francisco I would also recommend take the UTF-8 route, which allows to stay with normal strings in the database and even in the applications (since ASCII is part of the UTF-8 encoding), but you cannot use the new characters then, of course. When times come to add a new language then you can explicitely convert the new app/dll to use Unicode (actually UTF-16), but you have to use Unicode aware controls then (I heard of some people who switched from DevEx Grid to my Virtual Treeview ). You can even start with TRichEdit, which supports Unicode, but you have to add some functionality to get Unicode in and out.
Mike
--
www.delphi-gems.com
www.delphi-unicode.net
www.lischke-online.de
|
|
| Back to top |
|
 |
Boris Nienke Guest
|
Posted: Fri Sep 12, 2003 10:21 am Post subject: Re: Codepage overview? |
|
|
On 11 Sep 2003 11:22:17 -0700, Mike Lischke wrote:
thank you for the link!
BTW: none of your pages are working (server not available) - what's wrong?
| Quote: | And as far as i know it is not possible with the Sybase Anywhere Database to
work with unicode?
Like Francisco I would also recommend take the UTF-8 route, which allows to
stay with normal strings in the database and even in the applications
|
same question to you: do you have some infos about UTF-8 (what it is, how
it works, how i can use it with Delphi and Sybase Anywhere, ...)?
| Quote: | (since ASCII is part of the UTF-8 encoding), but you cannot use the new
characters then, of course. When times come to add a new language then you
|
what do you mean with "new" characters?
Boris
|
|
| Back to top |
|
 |
FL Guest
|
Posted: Fri Sep 12, 2003 11:18 am Post subject: Re: Codepage overview? |
|
|
| Quote: | currently i'm not aware what utf-8 really is and how it works... if you
have some good links for informations on this topic (utf-8 and
Delphi/Sybase Anywhere) it would be great
It is not exactly easy in your case, since using UTF-8 basically means |
you have to deal with Unicode, which is not something you currently want
to do.
Francisco
|
|
| Back to top |
|
 |
Boris Nienke Guest
|
Posted: Mon Sep 15, 2003 12:01 pm Post subject: Re: Codepage overview? |
|
|
On Thu, 11 Sep 2003 21:01:07 +0800, FL wrote:
| Quote: | Boris Nienke wrote:
- is there a single codepage which supports german umlauts, czechian
special characters and russian too? Or a least one codepage for
german/russian and one for german/czechian?
Unicode is the only way to achieve three languages at the same time.
|
that's why i thought...
| Quote: | IIRC, Sybase Anywhere supports utf-8.
|
currently i'm not aware what utf-8 really is and how it works... if you
have some good links for informations on this topic (utf-8 and
Delphi/Sybase Anywhere) it would be great
thank you very much! i wonder why i havn't found it because i've searched
the MS-Pages :-S
Boris
|
|
| Back to top |
|
 |
Boris Nienke Guest
|
Posted: Mon Sep 15, 2003 12:01 pm Post subject: Re: Codepage overview? |
|
|
On 11 Sep 2003 11:22:17 -0700, Mike Lischke wrote:
thank you for the link!
BTW: none of your pages are working (server not available) - what's wrong?
| Quote: | And as far as i know it is not possible with the Sybase Anywhere Database to
work with unicode?
Like Francisco I would also recommend take the UTF-8 route, which allows to
stay with normal strings in the database and even in the applications
|
same question to you: do you have some infos about UTF-8 (what it is, how
it works, how i can use it with Delphi and Sybase Anywhere, ...)?
| Quote: | (since ASCII is part of the UTF-8 encoding), but you cannot use the new
characters then, of course. When times come to add a new language then you
|
what do you mean with "new" characters?
Boris
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|