On 11/02/2018 12:19 AM, Greg Landrum wrote:
> On Fri, Nov 2, 2018 at 12:32 AM Dimitri Maziuk via Rdkit-discuss <
> rdkit-discuss@lists.sourceforge.net> wrote:
> 
>> Does anyone know where TH does
>>
>> <?xml version='1.0' encoding='iso-8859-1'?>
>>
>> come from? --
> 
> 
> assuming you're using the RDKit's MolDraw2DSVG class, that comes from here:
> https://github.com/rdkit/rdkit/blob/master/Code/GraphMol/MolDraw2D/MolDraw2DSVG.cpp#L53

Should it be changed to utf-8? I suspect any system where RDKit builds
at this point is using that, and I believe technically <text> element
can contain unicode.

E.g. you should be able to render your amino-acids with atoms labeled w/
Greek alphas, betas, etc. as per IUPAC.

>> I have two SVGs generated by the same container running on
>> the same linux host and one has the above, the other has
>>
>> <?xml version="1.0" encoding="windows-1252"?>
>>
> 
> No idea where that might have come from, but it's not MolDraw2DSVG

Weird. I'll see if I get any more of those...

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to