i posted similiar post on another forum but still no answer there so i'm trying here.

pagecode, threads, text-based controls, local(global), wide-character, multi-byte characters

can anyone please explain how these terms are dependent on each other ?

my current understanding is that wide-character/multi-byte characters are schemas for storing character codes and pagecode maps some specific code to character glyph(font entry)...

i have a lot of confusion on the subject, i know how to make my program unicode-aware but actually get it all work together is pretty hard...
i searched and read a lot of info on unicode subject but no source is actually explains how unicode entities are interconnected...

here is just a few questions i have:
----------------------------------------

How local and pagecode related each to other?

--------------------------------------------------------------------------

say, i have a text-based control and documentation says that it uses a local to output text OR it uses some pagecode for symbol translation...
so if i want to print each line of text in different language how is that possible? pagecode can represent simulteneously only 3 languages and local only 2....

----------------------------------------------------------------------------

i read also that i can setup a different local for each thread??
are threads locale-aware? and what's it good for?

-----------------------------------------------------------------------------

another,
as i see the win32 unicode app can treat symbols as wide-character(two-byte character) or as multi-bytes character...
i know what is a multi-byte character encoding (UTF-8, UTF-7) but is the above case refers to how characters are stored in memory?

------------------------------------------------------------------------

more about pagecodes and local,
which win32 objects are depend on pagecode and/or local and is this means that these object are limited to simultenouesly handling only 3 or 2 types of glyphes(languages)?

------------------------------------------------------------------------

for example:
i want to write a program that reads a unicode file with a few line in different language, say UTF-8.
now, i know that there are routines which are local based and unicode based.
as i see it, if i use a locale aware routine then the file won't be read properly because the local translates character codes according to some pagecode(global?) and it will be mapped to wrong glyphs... so i must use general unicode i/o functions...
so what are local dependant function good for?

------------------------------------------------------------------------------

i wrote a lot and maybe some questions are not formulated well but i hope someone can put the things on their place

thanks