New topic: 

Unknown characters and HTMLViewer

<http://forums.realsoftware.com/viewtopic.php?t=24919>

       Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic         Author  
Message       NeXTLoop           Post subject: Unknown characters and 
HTMLViewerPosted: Wed Oct 22, 2008 5:43 pm                               
Joined: Fri Oct 28, 2005 9:30 am
Posts: 9              I'm having a bit of trouble when trying to use HTMLViewer 
to display emails. Some of them, especially ones where the sending email client 
doesn't handle encodings very well, have characters that are unknown. RB simply 
inserts Unicode Replacement Glyph (black diamond with white question mark) 
displays in their place. The Unicode symbol for the character is FFFD.

The problem is that these characters hard crash HTMLViewer, and the 
application. No way to catch it or intercept it. What I'm trying to do is 
search all emails that get sent to HTMLViewer for such characters, and replace 
them with a generic one, like a standard question mark. But no matter how I 
search for it, I can't seem to get a positive match. I've tried searching for 
it explicitly... I've tried searching for the Unicode value... everything I can 
think of. I have of course also tried declaring and converting the string to 
UTF8 (although that's what it is already). No matter how I try, I can't seem to 
replace the offending character so that HTMLViewer doesn't crash.

Any ideas?   
                            Top               npalardy           Post subject: 
Re: Unknown characters and HTMLViewerPosted: Wed Oct 22, 2008 5:52 pm           
             
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 3908
Location: Canada, Alberta, Near Red Deer              They need to be properly 
encoded as HTML entities

 & as &amp;
 > as &gt;

etc

it's fussy that way     
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]     

-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to