Re: Thank you for all the good information, sUTF32ToUTF8 function

From: David Starner (dstarner98@aasaa.ofe.org)
Date: Fri Nov 09 2001 - 11:58:12 EST


On Fri, Nov 09, 2001 at 08:48:30AM -0600, Peter_Constable@sil.org wrote:
> Any suggestions on what the right way to deal with "surrogate" codepoints
> in this algorithm? They should not occur in the data, but what if they do?

Just translate them from one encoding to the other normally. Unless
you have a larger framework, then you can raise an exception or return
an error as appropriate.

-- 
David Starner - dstarner98@aasaa.ofe.org
Pointless website: http://dvdeug.dhis.org
"I saw a daemon stare into my face, and an angel touch my breast; each 
one softly calls my name . . . the daemon scares me less."
- "Disciple", Stuart Davis



This archive was generated by hypermail 2.1.2 : Fri Nov 09 2001 - 13:02:01 EST