New topic: 

from UTF-8 to ASCII succesfully

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

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       joku           Post subject: from UTF-8 to ASCII 
succesfullyPosted: Thu Oct 23, 2008 3:08 pm                        
Joined: Thu Oct 23, 2008 1:01 pm
Posts: 1
Location: Rovaniemi, Espoo, Finland              I have data coming from the 
Internet, it's in UTF-8. However it has no encoding set in HTTPSocket's content.
How would I check if there are any characters in "content" that would not 
display in ASCII? I've tried ConvertEncoding, and also a loop where it checks 
Asc(I) on every character to see if it is over 31 and less than 127, but 
sometimes wrong characters get through, like the UTF-8 right crave accent 
(sp?), aka "  ���  " which is not a correct apostrophe. How's that even 
possible? 

If it matters, this is a software that downloads user-written reviews on 
hotels. I have no control over what characters are accepted in the reviews, 
that's not my section, so it has to be done with software.   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
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