The cost of adding a feature isn't just the time it takes to code it. The cost also includes the addition of an obstacle to future expansion. The trick is to pick the features that don't fight each other.
Seems like the default encoding is 'ascii', but when I do:
>>> u = u'\u5554'
>>> print u
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u5554' in position 0: ordinal not in range(256)
It says it tried to encode it to latin-1 but encountered a char that could not be represented with this encoding.
I am being sponsored by Syntress! They bought me an amazing dedicated server to run catonmat on. If you're looking web services, I highly recommend the Syntress guys!
Roman, I haven't figured that out yet. I looked at this:
Seems like the default encoding is 'ascii', but when I do:
It says it tried to encode it to latin-1 but encountered a char that could not be represented with this encoding.
But this works:
>>> print u.encode('utf-8') 啔Update:
ISO-8859-1 is Latin-1.
Another update:
That explains it.
Reply To This Comment