how to make a program/macro that toggles ascii/unicode characters ?

From: Ørjan Jenssen (orjan.jenssen@fm-fi.stat.no)
Date: Tue May 30 2000 - 05:25:01 EDT


Hello everyone,

I'm working in i public office in Finnmark, the northernmost county of
Norway. Here we regularly use sami/lappish characters like c, s and z, all
with caron (and a few others). Before (and still), we used a nonstandard
true type font, resulting in files with ascii-values that make sense only
when this font is used.

Now some of us have NT machines, and some Win95, -98 or 2000. This makes a
mess, because new files made with NT and extended character sets (Latin ext
A) can't be shown correctly on 95/98-machines. And old files with this
special font don't look right on NT machines.

I want to make a program in Visual Basic, or a macro in Word, that can
change characters both ways. That is, I want to be able to convert old files
so that they look right with NT, and to convert new files written i NT so
that they look right with this special old font.

I've made a similar program before, which changes ascii-values, ex between
NS4551 and ansi. This is simply done by the routine
if asc(sign) = nnn then sign = chr(yyy), and replacing the asciivalue in the
file.
But this doesn't seem to work with unicode and values outside 255.

Can it be done - and how?

With regards,
Ørjan W. Jenssen
Office of Nature Management,
The Finnmark County Governor



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:03 EDT