New topic: Cocoa html decoding problem
<http://forums.realsoftware.com/viewtopic.php?t=46624> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message Pepe Post subject: Cocoa html decoding problemPosted: Sat Jan 19, 2013 7:48 pm Joined: Sat Jul 22, 2006 7:56 pm Posts: 39 I have a carbon app that I am converting to cocoa. I am taking HTML text from a web page and processing it with a method that removes tags and decodes HTML. Carbon textfield results > Patrick K. O'Donnell Cocoa textfield results > Patrick K. O���Donnell Carbon textarea results (partial) > In the tradition of Band of Brothers, acclaimed combat historian Patrick K. O'Donnell cinematically tells one of World War II's greatest untold stories. Cocoa textarea results (partial) > � �� In the tradition of��Band of Brothers, acclaimed combat historian Patrick K. O���Donnell cinematically tells one of World War II���s greatest untold stories. I have tried two HTML removal methods, 1: home grown 2: RemoveHTMLTagsMBS(txt) and DecodingFromHTMLMBS(txt), Both get the same results. The tags are removed but with cocoa html is not decoded and with carbon html is decoded. Top npalardy Post subject: Re: Cocoa html decoding problemPosted: Sat Jan 19, 2013 8:15 pm Real Software Engineer Joined: Sat Dec 24, 2005 8:18 pm Posts: 7679 Location: Canada, Alberta, Near Red Deer Have you defined the encoding of the text ? I'm betting this is a unicode character that has multiple bytes but with the string not having the correct encoding. _________________ My web site Great White Software RBLibrary.com REALbasic learning Top DaveS Post subject: Re: Cocoa html decoding problemPosted: Sat Jan 19, 2013 8:15 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 4441 Location: San Diego, CA Check to make sure the encoding your are using is consistent with the data... _________________ Dave Sisemore MacPro, OSX Lion 10.7.4 RB2012r1 Note : I am not interested in any solutions that involve custom Plug-ins of any kind Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 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 rbforumnotifier@monkeybreadsoftware.de