[haiku-development] Re: StyledEdit and STXT translator. Handling bogus data in ht input streams.

  • From: pulkomandy <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 25 Nov 2012 13:49:30 +0100

On Sun, Nov 25, 2012 at 01:08:23PM +0100, FranÃois Revol wrote:
> On 25/11/2012 12:57, Siarzhuk Zharski wrote:
> > Siarzhuk Zharski ÐÐÑÐÐ 25.11.2012 12:09:
> >> 1) Improve STXT translator to check the streams for valid UTF-8
> >> characters and fail in case some bogus data found (case #6447);
> > 
> > By the way, are there any utf-8 validity checking routines implemented
> > in Haiku core/kits or a homebrewn one should be still implemented?
> > 
> 
> Probably ICU has some?

ICU can try guessing encodings, yes. This should be mapped in the Locale
Kit API somehow, but it isn't yet.

-- 
Adrien.

Other related posts: