2009/8/19 David-Sarah Hopwood <[email protected]>

> Dmitry Negius wrote:
> > I have done like you said under my Windows XS Service Pack 3 computer.
> > I have written and compiled next:
> >
> > functor
> > import
> >  Application
> >  System
> > define
> >  {System.showInfo "АБВГД"}
> >  {Application.exit 0}
> > end
> >
> > The output from this program is pseudo-graphic trash - not the Russian
> > letters.
>
> If the file was not saved in notepad, then open it in notepad, check
> that the Cyrillic characters look correct, and then re-save it making
> sure that the encoding is 'ANSI'. (This is just so that we can be sure
> that the file is encoded as code page 1251, Windows Cyrillic.)

I Saved above file in notepad in ANSI format. Then I loaded this file to the
OPI - russians characters was wrong displayed.


>
>
> Open a command prompt and enter "chcp". It will probably say
> "Active code page: 866". If so, then you are a victim of Microsoft
> incompetence -- nothing specifically to do with Oz. Enter "chcp 1251"
> and then try running the Oz program again from the prompt.

I have done this - changed code page to 1251  and after that directory names
and test2.ozf output become  pseudographic trash. Before this the codepage
returned by chcp was 866 and directory names in the command prompt was
displayed correctly.


>
>
> If that works, you will need to get the OPI to use code page 1251.
> (I'm surprised it isn't using the ANSI code page by default; if it
> isn't then I don't know how to fix it.)
>
> --
> David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com
>
>
> _________________________________________________________________________________
> mozart-users mailing list
> [email protected]
> http://www.mozart-oz.org/mailman/listinfo/mozart-users
>



-- 
Normal people grows o...@#
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to