New topic: 

Unicode Text

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

       Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic         Author  
Message       Grant           Post subject: Unicode TextPosted: Thu Oct 15, 
2009 12:40 am                        
Joined: Sun Jan 22, 2006 2:37 am
Posts: 258              Hi,

I am trying to export text that has Japanese char's in it, however when I 
export it comes up with rubbish. I am running the latest RealBasic, and the 
text (ExportString) has the correct Japanese char's in it, because I am 
displaying it in a text box to check that.

The code I am using to export is:

Textstream.Write ConvertEncoding(ExportString, Encodings.UTF8)
   
But it does not work. Does anyone know what I am doing wrong?


Regards,

Grant   
                            Top               timhare           Post subject: 
Re: Unicode TextPosted: Thu Oct 15, 2009 1:10 am                        
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 6565
Location: Portland, OR  USA              1) Is the encoding defined for 
ExportString before you call ConvertEncoding?  If not ConvertEncoding will 
mangle the text.
2) Are you sure the text is mangled?  If you try to view it with something that 
does not understand the encoding, it will *look* like rubbish, but in fact, it 
is OK.

Tim   
                            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 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to