Nope, that doesn't do anything as far as I can tell since the message
appears to be in UTF8 to start with. Unfortunately, I can't copy
the actual text since it doesn't show up but when I do it looks like:
OpenVMS�,
where the question in diamond is the ™ symbol (tm).
DIM test as string = "OpenVMS�,"
test = test.ConvertEncoding(Encodings.UTF8)
doesn't alter test. And passing it to an HTMLViewer as part of a
web page causes it to crash.
ASC(�) (on the mystery character) produces nil.
Any other suggestions?
thanks,
S
Message: 14
Subject: Re: Unknown character causing HTMLViewer to crash...
From: Trausti Thor Johannsson <[EMAIL PROTECTED]>
Date: Fri, 21 Jul 2006 10:05:21 +0200
Simple. make sure your string is UTF8 (Unicode).
This code does the job.
dim s as string
s =3D s.ConvertEncoding(Encodings.UTF8)
Enjoy,
Trausti
On 21.7.2006, at 00:34, Serg Koren wrote:
HI,
I'm trying to display a block of text in an HTMLViewer
(formatted =20=
as HTML).
One of the text charaters shows up in the RB debugger as black =20
diamonds with a white "?" in the center. In Safari these shows
up =20=
as the (tm) symbol =99, the.(c) =A9 and registered (r) =AE
characters. =
=20
However they aren't encoded as normal HTML & strings but rather as
=20
the actual character.
Apparently this is causing HTMLViewer to crash my app silently =20
(with no exceptions thrown at any level). I'm trying to filter
out =20=
these characters with ReplaceAll,
but doing an ASC() on that character returns nil (not 0). I'm =20
trying to figure out what to pass into the ReplaceAll function, =20
since doing a copy paste of the diamond doesn't do it (I'm
assuming =20=
the black diamond is an RB thing and not the actual character.).
Any help would be helpful ;-)
Thanks,
S
_______________________________________________
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>