>From: Kristoffer Kobosko >Sent: Thu, December 2, 2010 5:52:40 AM > > Hi Dave! > > I am currently using and enjoying generateds very much! >
Kristoffer - Super. Glad it's of help. Thanks for letting me know. > One thing I have noticed though, is that an xml object structure > fails to export properly to python code using a generated > parser/generator if it contains unicode characters outside of the > ascii range. Sigh. Yes, I've left the generation of Python code behind a bit during recent changes. I'll get back to it soon I hope. > > XML code parsing / exporting is handled properly thanks to the > --external-encoding command line argument to generateDS, which does > .encode(external_encoding) properly, but this is not the case for > python exports. Thanks for pointing this out. I'll put the encoding capability on my list of things to fix in the exportLiteral stuff. > > Is there a reason behind this, or should it actually be considered > as a bug? Seems like a bug. I'll look more closely. > > I understand that python does support code in utf-8 format. Yes. I believe you are right. In fact, the Python style guide (http://www.python.org/dev/peps/pep-0008/) even suggests that utf-8 is preferred, especially for Python 3.0 and beyond. But, here is a question -- Should literal strings in the generated Python code be unicode which is then encoded as utf-8 during export? Or, should those strings be encoded as utf-8 strings? My guess is the first, so that we can do our processing in Python unicode strings. What do you think? Thanks again for the nudge. Sometimes I can use a little motivation. And, thanks for the suggestions. I hope to get to them before too long. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman ------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users