CoCalc -- Collaborative Calculation in the Cloud
Sharedsupport / 2015-08-21-225216-encoding.sagewsOpen in CoCalc

Examples for support purposes...

from openpyxl import Workbook
wb = Workbook() # I created new empty Excel book
ws = wb.get_active_sheet() # I get active empty Excel sheet
ws.title = unicode("План дня", 'utf-8')
ws
Error in lines 5-5 Traceback (most recent call last): File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 879, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_salvus.py", line 3275, in displayhook _system_sys_displayhook(obj) UnicodeEncodeError: 'ascii' codec can't encode characters in position 12-15: ordinal not in range(128)