Message6947

Author pekka.klarck
Recipients pekka.klarck
Date 2012-03-21.05:29:01
SpamBayes Score 1.3622654e-06
Marked as misclassified No
Message-id <1332307742.32.0.777046386515.issue1865@psf.upfronthosting.co.za>
In-reply-to
Content
I expected Jython to support at least the same encodings that JVM supports. It turned out I was wrong:

$ jython
Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06) 
[Java HotSpot(TM) Server VM (Sun Microsystems Inc.)] on java1.6.0_21
Type "help", "copyright", "credits" or "license" for more information.
>>> from java.nio.charset import Charset     
>>> for c in sorted(Charset.availableCharsets()):
...   print c
...   'x'.encode(c)
... 
Big5
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
LookupError: unknown encoding 'big5'
History
Date User Action Args
2012-03-21 05:29:02pekka.klarcksetrecipients: + pekka.klarck
2012-03-21 05:29:02pekka.klarcksetmessageid: <1332307742.32.0.777046386515.issue1865@psf.upfronthosting.co.za>
2012-03-21 05:29:02pekka.klarcklinkissue1865 messages
2012-03-21 05:29:01pekka.klarckcreate