Simple. make sure your string is UTF8 (Unicode).
This code does the job.
dim s as string
s = 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
as HTML).
One of the text charaters shows up in the RB debugger as black
diamonds with a white "?" in the center. In Safari these shows up
as the (tm) symbol ™, the.(c) © and registered (r) ® characters.
However they aren't encoded as normal HTML & strings but rather as
the actual character.
Apparently this is causing HTMLViewer to crash my app silently
(with no exceptions thrown at any level). I'm trying to filter out
these characters with ReplaceAll,
but doing an ASC() on that character returns nil (not 0). I'm
trying to figure out what to pass into the ReplaceAll function,
since doing a copy paste of the diamond doesn't do it (I'm assuming
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>
_______________________________________________
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>