Skip to content

Python 2.x Compatibility

jnumm edited this page May 31, 2012 · 1 revision

On Python 2.x the output of the functions could be something like this:

Python 2.7.3rc2 (default, Apr 22 2012, 22:35:38) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import langtools.gen
>>> print langtools.gen.generate_word()
nuh�nek�ke

So the Unicode characters are not displayed correctly. If someone knows a solution which works with both Python 2 and 3, please let me know.

Clone this wiki locally