V
Vince
I seem to have a strange unicode problem. Let me descibe what I am doing:
Part of my VBA tool involves reading from a unicode saved text file which is
in the format:
findwordSPLITreplaceword
The VBA code then processes the sequence of lines and keeps replacing
"findword" with "replaceword". The sample text file is attached and its
contents are:
?SPLIT&agr;
?SPLIT&bgr;
?SPLIT&khgr;
Whenever I try to get the "findword" using a command like:
SPL=split(EachLine,"SPLIT")
msgbox strconv(SPL(0),vbfromunicode) ' Shows me gibberish for alpha and
gamma BUT works for beta!
The problems happen only for some unicode symbol fonts and work for all
other normal fonts and most symbol fonts.
My question is, if I need to have a file that may contain unicode characters
and is saved in unicode format and I need to be able to do find and replaces
the way mentioned above, what would be the best method? I have no idea why
this doesn't work for alpha and gamma and works for many others!
Thanks for your thoughts on this.
Vince
Part of my VBA tool involves reading from a unicode saved text file which is
in the format:
findwordSPLITreplaceword
The VBA code then processes the sequence of lines and keeps replacing
"findword" with "replaceword". The sample text file is attached and its
contents are:
?SPLIT&agr;
?SPLIT&bgr;
?SPLIT&khgr;
Whenever I try to get the "findword" using a command like:
SPL=split(EachLine,"SPLIT")
msgbox strconv(SPL(0),vbfromunicode) ' Shows me gibberish for alpha and
gamma BUT works for beta!
The problems happen only for some unicode symbol fonts and work for all
other normal fonts and most symbol fonts.
My question is, if I need to have a file that may contain unicode characters
and is saved in unicode format and I need to be able to do find and replaces
the way mentioned above, what would be the best method? I have no idea why
this doesn't work for alpha and gamma and works for many others!
Thanks for your thoughts on this.
Vince