[Freeswitch-dev] FS's string encoding - valid UTF-8?

Michael Jerris mike at jerris.com
Thu Aug 4 04:24:13 MSD 2016


it 100% for sure will not reject invalid sequences.


> On Aug 3, 2016, at 5:56 PM, Michael Giagnocavo <mgg at giagnocavo.net> wrote:
> 
> Well for instance data from SIP messages getting stuck into event headers/variables.
>  
> Less critically, from XML files – is the XML reader actually compliant (rejecting invalid sequences)?
>  
>  
> From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Michael Jerris
> Sent: Wednesday, 3 August, 2016 8:26
> To: freeswitch-dev at lists.freeswitch.org
> Subject: Re: [Freeswitch-dev] FS's string encoding - valid UTF-8?
>  
> If it receives them from itself?  We do very little to do with utf8 encoding in fs.  If it passes through a char * its likely fine if its fine on the other side.
>  
>  
> On Aug 3, 2016, at 1:58 AM, Michael Giagnocavo <mgg at giagnocavo.net <mailto:mgg at giagnocavo.net>> wrote:
>  
> Does FS enforce UTF-8 anywhere? I am writing a new interop module and need to know if handling non-UTF-8 char*s is a requirement. I’m thinking particularly from SIP messages and other external user inputs.
>  
> In other words, if a FS ever receives a non-UTF-8 string from FS, is that automatically a bug in FS? Or considered within acceptable behaviour?
>  
> Thanks,
> -Michael
>  
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org <http://www.freeswitch.org/>
> http://wiki.freeswitch.org <http://wiki.freeswitch.org/>
> http://www.cluecon.com <http://www.cluecon.com/>
> 
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org <mailto:FreeSWITCH-dev at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev <http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev <http://lists.freeswitch.org/mailman/options/freeswitch-dev>
> http://www.freeswitch.org <http://www.freeswitch.org/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20160803/6fe60a5b/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-dev mailing list