Hi,
You should not enter any national characters in the source code
directly. But if you must...
What I guess is happening is that ozc.exe, which is internally used for
compilation in the OPI, uses a different character set than the OPI (in
Windows jargon, the OEM charset vs. the ANSI charset). If you try "type
mysource.oz" in the console and see garbled national characters (as
opposed to viewing the file in notepad.exe), this might indicate that
I'm right.
If you are using some encoding native to your platform other than the
prescribed 8859-1, then you may consider
1. translating each string in the source file from the system ANSI
codepage to utf-8 (this would then be your internal utf-8 string
representation) using some utility function;
2. translating the utf-8 representation back to console codepage or OPI
code page for std output (you may need to know whether your program
outputs to the OPI or the console).
For this all, my package can be probably used:
* http://www.mozart-oz.org/mogul/info/fkonvick/unicode.html
I used to be able to load national characters from/to utf8-encoded text
files or the oracle database via the tclodbc library, and output strings
to the console or OPI correctly. In my case, the system charset (the one
used by the OPI) was Windows 1250, while the console was cp852. You may
find the necessary code page translations in the library.
Hope this helps,
Filip
Hope I understood your question..
Best
Torsten
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-586219
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de
------------------------------------------------------------------------
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users