Andrii,

Your suggestion sounds reasonable.  We definitely do not want an
exception.  I'll take a look.  I need to try to make sure that the
change you suggest would not cause problems with Python 2 or Python 3
or some other data.

Thanks for the report.

By the way, I took a quick look at your Web site
(http://www.ebi.ac.uk/, right?) and it looks like you do incredible
and fascinating work.

Dave

On Wed, Jan 11, 2017 at 05:00:36PM +0000, Andrii Iudin wrote:
> Dear Dave,
> 
> We have encountered the following issue: when an export generated for a
> complex type element, it has the following:
> outfile.write((quote_xml(self.valueOf_) if type(self.valueOf_) is str else
> self.gds_encode(str(self.valueOf_))))
> 
> However, if this complex type element is a unicode string, then
> str(self.valueOf_) results in UnicodeEncodeError. Please could you tell if
> it would be possible to add a condition that, in addition to checking
> whether type(self.valueOf_) is str, will check if type(self.valueOf_) is
> unicode, and if so, then apply self.gds_encode directly to self.valueOf_?
> Or, perhaps, there is a better solution to this?
> 
> Many thanks and best regards,
> Andrii

-- 

Dave Kuhlman
http://www.davekuhlman.org

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to