• Page:
  • 1

TOPIC: python function unicode() cannot work.

python function unicode() cannot work. 1 year 3 weeks ago #1

  • zhpower
  • zhpower's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
When I run python on the openelec, encounter the below issue.

version: Generic Builds OpenELEC 2.0 (Beta 3) - 1.95.3

root ~ # python
Python 2.7.2 (default, Mar 8 2012, 19:37:24)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import string
>>> unicode("df","gbk","ignore")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
LookupError: unknown encoding: gbk
>>> unicode("fdf","utf8","ignore")
u'fdf'
>>>

btw the gbk is a chinese character encode, it can been shown in the openelec GUI after i set the arial fonts.
Last Edit: 1 year 3 weeks ago by zhpower.
The administrator has disabled public write access.

Re: python function unicode() cannot work. 1 year 3 weeks ago #2

  • sraue
  • sraue's Avatar
  • NOW ONLINE
  • Developer
  • Posts: 1314
  • Thank you received: 182
  • Karma: 71
please report to github.com/OpenELEC/OpenELEC.tv/issues

Stephan
The administrator has disabled public write access.
  • Page:
  • 1

Our Sponsors & Partners

arctic_logo