>From: Kristoffer Kobosko
>Sent: Thu, December 9, 2010 4:23:18 AM
> Hi again Dave,
>
> I completely agree with you. Unicode strings seem to be the way
> to go, since they are the most generic types of strings, and many
> API:s for python seem to use them.
>
> I did a quick experiment to verify that a statically declared
> unicode string is correctly coded to utf-8 given that it is
> declared in a python file which characters outside of the
> 128-range are recognized using utf-8 encoding:
>
> test.py:
>
> # -*- coding: utf-8 -*-
> a=u'รครครค'
> print (type(a),a)
> b= a.encode('utf-8')
> print (type(b),b)
>
> % python test.py
>
> (<type 'unicode'>, u'\xe4\xe4\xe4')
> (<type 'str'>, '\xc3\xa4\xc3\xa4\xc3\xa4')
>
> Thanks again for a great piece of software!
>
Kristoffer -
Thanks for doing the above experiment.
I'll try to put some time into the exportLiteral generation code in
the next week or two.
>
>
> Thanks again for a great piece of software. With generateDS I
> don't need to care about XML anymore :)
>
Great. A comment like that makes the work worthwhile and it
keeps me motivated.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
generateds-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/generateds-users